diff --git a/src/pretix/plugins/stripe/views.py b/src/pretix/plugins/stripe/views.py index a152775b0b..48d382b0fe 100644 --- a/src/pretix/plugins/stripe/views.py +++ b/src/pretix/plugins/stripe/views.py @@ -348,6 +348,10 @@ 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): + payment.info = str(src) + payment.state = OrderPayment.PAYMENT_STATE_CANCELED + payment.save() return HttpResponse(status=200)