mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Stripe: Automatically fail payments if the payment_intent has failed.
This commit is contained in:
@@ -433,6 +433,9 @@ def paymentintent_webhook(event, event_json, paymentintent_id, rso):
|
||||
defaults={'order': rso.payment.order, 'payment': rso.payment}
|
||||
)
|
||||
|
||||
if event_json["type"] == "payment_intent.payment_failed":
|
||||
rso.payment.fail(info=event_json)
|
||||
|
||||
return HttpResponse(status=200)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user