summaryrefslogtreecommitdiff
path: root/postgresqleu
diff options
context:
space:
mode:
authorMagnus Hagander2019-04-06 09:29:52 +0000
committerMagnus Hagander2019-04-06 09:29:52 +0000
commit53ba4d82ef401c47553a55ed941af2f0c4273bc9 (patch)
tree0a548e68344c1396480c7a8b8d7da144db27bf41 /postgresqleu
parent00fbded673057fe52776f7285b8f18fdcece96b4 (diff)
Also properly match the recurring unknown payments
Diffstat (limited to 'postgresqleu')
-rwxr-xr-xpostgresqleu/paypal/management/commands/paypal_match.py2
-rw-r--r--postgresqleu/paypal/util.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/postgresqleu/paypal/management/commands/paypal_match.py b/postgresqleu/paypal/management/commands/paypal_match.py
index 18b45d34..aa1bd615 100755
--- a/postgresqleu/paypal/management/commands/paypal_match.py
+++ b/postgresqleu/paypal/management/commands/paypal_match.py
@@ -71,7 +71,7 @@ class Command(BaseCommand):
continue
# Record type: payment, but with no notice (auto-generated elsewhere, the text is
# hard-coded in paypal_fetch.py
- if trans.transtext == "Paypal payment with empty note":
+ if trans.transtext == "Paypal payment with empty note" or trans.transtext == "Recurring paypal payment without note":
trans.setmatched('Empty payment description, leaving for operator')
accstr = "Unlabeled paypal payment from {0}".format(trans.sender)
diff --git a/postgresqleu/paypal/util.py b/postgresqleu/paypal/util.py
index 02321c52..67a6a217 100644
--- a/postgresqleu/paypal/util.py
+++ b/postgresqleu/paypal/util.py
@@ -125,7 +125,7 @@ class PaypalAPI(object):
else:
r['SUBJECT'] = 'Paypal payment with empty note'
elif code == 'T0002':
- r['SUBJECT'] = 'Paypal recurring payment, unknown source'
+ r['SUBJECT'] = 'Recurring paypal payment without note'
elif code == 'T1107':
if t['transaction_info'].get('transaction_subject', ''):
r['SUBJECT'] = 'Refund of Paypal payment: %s' % t['transaction_info']['transaction_subject']