mirror of
https://github.com/pretix/pretix.git
synced 2026-08-22 12:42:00 +00:00
store the state of the payment regardless of the state
control.html shows the banner that the payment is in review depending on payment.info
This commit is contained in:
@@ -424,6 +424,8 @@ def webhook(request, *args, **kwargs):
|
|||||||
**event_json,
|
**event_json,
|
||||||
'_order_state': sale.dict(),
|
'_order_state': sale.dict(),
|
||||||
})
|
})
|
||||||
|
payment.info = json.dumps(sale.dict())
|
||||||
|
payment.save()
|
||||||
|
|
||||||
if payment.state == OrderPayment.PAYMENT_STATE_CONFIRMED and sale['status'] in ('PARTIALLY_REFUNDED', 'REFUNDED', 'COMPLETED'):
|
if payment.state == OrderPayment.PAYMENT_STATE_CONFIRMED and sale['status'] in ('PARTIALLY_REFUNDED', 'REFUNDED', 'COMPLETED'):
|
||||||
if event_json['resource_type'] == 'refund':
|
if event_json['resource_type'] == 'refund':
|
||||||
|
|||||||
Reference in New Issue
Block a user