summaryrefslogtreecommitdiff
path: root/postgresqleu/stripepayment/views.py
diff options
context:
space:
mode:
authorMagnus Hagander2023-09-18 11:24:53 +0000
committerMagnus Hagander2023-09-18 11:24:53 +0000
commitfdc144c4b44dfeb250cc93751816a18185870cd5 (patch)
tree53b28f127264b3b486f83c3080474ac1b44c7842 /postgresqleu/stripepayment/views.py
parentcdaff474c22cc13b66f57681f89cf9f0360b3500 (diff)
Update regexp for stripe automatchers
In particular, allow just the text STRIPE (or rather, anythign that ends in it) with nothign following it, as that appears to be what comes out of Stripe UK.
Diffstat (limited to 'postgresqleu/stripepayment/views.py')
-rw-r--r--postgresqleu/stripepayment/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/stripepayment/views.py b/postgresqleu/stripepayment/views.py
index 1e5bfe09..05edde1e 100644
--- a/postgresqleu/stripepayment/views.py
+++ b/postgresqleu/stripepayment/views.py
@@ -243,7 +243,7 @@ def webhook(request, methodid):
# Stripe payouts include a "magic number", but unfortunately this magic number
# is not available through the APIs so there is no way to match on it.
register_pending_bank_matcher(pm.config('accounting_payout'),
- r'.*STRIPE\s+[^\s+].*',
+ r'.*STRIPE(\s+[^\s+].*|$)',
payout.amount,
entry)
msg = "A Stripe payout with description {} completed for {}.\n\nAccounting entry {} was created and will automatically be closed once the payout has arrived.".format(