mirror of
https://github.com/pretix/pretix.git
synced 2026-08-06 10:07:50 +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,
|
||||
'_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 event_json['resource_type'] == 'refund':
|
||||
|
||||
Reference in New Issue
Block a user