From a0e3bbcc8225470eb4cc6b5c5865b3b6ae0657f5 Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Wed, 7 Aug 2019 10:11:07 +0200 Subject: [PATCH] Fix payment cancelation of Stripe sources --- src/pretix/plugins/stripe/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/stripe/views.py b/src/pretix/plugins/stripe/views.py index 6855b2f5a3..dabfc11c68 100644 --- a/src/pretix/plugins/stripe/views.py +++ b/src/pretix/plugins/stripe/views.py @@ -366,7 +366,7 @@ def source_webhook(event, event_json, source_id, rso): 'info': str(src) }) payment.save() - elif src.status == 'canceled' and payment.state in (Order.STATUS_PENDING, OrderPayment.PAYMENT_STATE_CREATED): + elif src.status == 'canceled' and payment.state in (OrderPayment.STATUS_PENDING, OrderPayment.PAYMENT_STATE_CREATED): payment.info = str(src) payment.state = OrderPayment.PAYMENT_STATE_CANCELED payment.save()