From 248493dbf26aafde9f024f62f765d5a693d4e6f1 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 29 Sep 2019 18:32:19 +0200 Subject: [PATCH] Stripe plugin: Fix AttributeError --- 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 9174eb8661..3f02b701f7 100644 --- a/src/pretix/plugins/stripe/views.py +++ b/src/pretix/plugins/stripe/views.py @@ -370,7 +370,7 @@ def source_webhook(event, event_json, source_id, rso): 'info': str(src) }) payment.save() - elif src.status == 'canceled' and payment.state in (OrderPayment.STATUS_PENDING, OrderPayment.PAYMENT_STATE_CREATED): + elif src.status == 'canceled' and payment.state in (OrderPayment.PAYMENT_STATE_PENDING, OrderPayment.PAYMENT_STATE_CREATED): payment.info = str(src) payment.state = OrderPayment.PAYMENT_STATE_CANCELED payment.save()