Add support for another type of paypal withdrawals
authorMagnus Hagander <magnus@hagander.net>
Mon, 4 Dec 2023 14:59:44 +0000 (09:59 -0500)
committerMagnus Hagander <magnus@hagander.net>
Mon, 4 Dec 2023 14:59:44 +0000 (09:59 -0500)
Apparently some bank withdrawals are "General Withdrawal - Bank account"
and others are "Withdrawals initiated by user".

postgresqleu/paypal/util.py

index 452a0ea5a9af9894c4c8f1f1347cbc29b44f05df..8d28774b466e0d8b3802591f7f8fd4deff4bb4b4 100644 (file)
@@ -99,7 +99,7 @@ class PaypalAPI(object):
                 # General hold and release of general hold. Ignore those.
                 continue
 
-            if code == 'T0400':
+            if code in ('T0400', 'T0403'):
                 # General withdrawal, doesn't have normal details
                 r['EMAIL'] = self.pm.config('email')
                 r['NAME'] = self.pm.config('email')