diff options
| author | Magnus Hagander | 2020-04-07 08:45:12 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2020-04-07 08:45:12 +0000 |
| commit | a9fb732bb52fa392f9ad0d4d9d7567de2660f9f9 (patch) | |
| tree | 2dbf02454e2efaf4a004ffaebc659e1ecb3ba105 /postgresqleu/paypal | |
| parent | ed4c4a29b7bb832ba3eec1a6b0680aaa79c69402 (diff) | |
Add support for T0303 codes to paypal
This is a direct-bank-deposit, such as when doing an IBAN payment to
ones own account. There are no details at all available in the message
from paypal, so just make one up and fake the email, like we do with
paypal withdrawals.
Diffstat (limited to 'postgresqleu/paypal')
| -rw-r--r-- | postgresqleu/paypal/util.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/postgresqleu/paypal/util.py b/postgresqleu/paypal/util.py index cc9dcfbf..8ba2f098 100644 --- a/postgresqleu/paypal/util.py +++ b/postgresqleu/paypal/util.py @@ -103,6 +103,14 @@ class PaypalAPI(object): yield r continue + if code == 'T0303': + # Bank deposit, doesn't have normal details + r['EMAIL'] = self.pm.config('email') + r['NAME'] = self.pm.config('email') + r['SUBJECT'] = 'Bank deposit to paypal' + yield r + continue + if code == 'T1201': # Chargeback, also doesn't have normal details r['EMAIL'] = self.pm.config('email') |
