diff options
author | Magnus Hagander | 2024-06-06 20:42:48 +0000 |
---|---|---|
committer | Magnus Hagander | 2024-06-06 20:42:48 +0000 |
commit | e31329a138522e9ef4c2b2750eb378f6d45fdb9e (patch) | |
tree | 5ffd12371d27e0f65e474c1779a130075edd2195 /postgresqleu/paypal/util.py | |
parent | 53eda8fb450280807aad7d5efe229efc3fd8572a (diff) |
Accept paypal code T0700 as a payment
This is one never seen before and seems to be used for shipping labels.
Bring it in and treat it like any other.
Noted by Christophe Pettus, but not his patch - going for a minimalistic
one. This code may need some further refactoring down the road.
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 8d28774b..097d812c 100644 --- a/postgresqleu/paypal/util.py +++ b/postgresqleu/paypal/util.py @@ -161,7 +161,7 @@ class PaypalAPI(object): if 'fee_amount' in t['transaction_info']: r['FEEAMT'] = t['transaction_info']['fee_amount']['value'] - if code in ('T0000', 'T0001', 'T0003', 'T0006', 'T0007', 'T0011', 'T0013'): + if code in ('T0000', 'T0001', 'T0003', 'T0006', 'T0007', 'T0011', 'T0013', 'T0700'): if 'item_details' in t['cart_info']: r['SUBJECT'] = t['cart_info']['item_details'][0]['item_name'] elif 'transaction_note' in t['transaction_info']: |