diff options
author | Magnus Hagander | 2019-04-06 09:06:16 +0000 |
---|---|---|
committer | Magnus Hagander | 2019-04-06 09:09:27 +0000 |
commit | ba017a256f2347cac62fe2c5b78455c1e73cc86a (patch) | |
tree | afa0cd7fd9a7e0d7fd92d9fe130972a73990f42e /postgresqleu/paypal/util.py | |
parent | a4c86a6316ab4f9dbbe37f8630ca6d2e64fdf040 (diff) |
Handle paypal payment type T0002
Apparently you get "subscriptino payments" from people even if you don't
support subscriptions. It shows up if somebody voluntarily sets up for
example a monthly donation (as far as I can tell, I can't find any
documentation about it)
Diffstat (limited to 'postgresqleu/paypal/util.py')
-rw-r--r-- | postgresqleu/paypal/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/paypal/util.py b/postgresqleu/paypal/util.py index 0244146d..0c9de9db 100644 --- a/postgresqleu/paypal/util.py +++ b/postgresqleu/paypal/util.py @@ -117,7 +117,7 @@ class PaypalAPI(object): if 'fee_amount' in t['transaction_info']: r['FEEAMT'] = t['transaction_info']['fee_amount']['value'] - if code in ('T0000', 'T0001', 'T0006', 'T0007', 'T0013'): + if code in ('T0000', 'T0001', 'T0002', 'T0006', 'T0007', 'T0013'): if 'item_details' in t['cart_info']: r['SUBJECT'] = t['cart_info']['item_details'][0]['item_name'] elif 'transaction_note' in t['transaction_info']: |