mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Stripe plugin: Fix AttributeError
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user