From 588abffdd3bf802fd06cbd613ba6a1ce5d8a47d7 Mon Sep 17 00:00:00 2001 From: Lukas Bockstaller Date: Thu, 6 Aug 2026 11:38:08 +0200 Subject: [PATCH] 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 --- src/pretix/plugins/paypal2/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pretix/plugins/paypal2/views.py b/src/pretix/plugins/paypal2/views.py index 56b118230d..c00684763a 100644 --- a/src/pretix/plugins/paypal2/views.py +++ b/src/pretix/plugins/paypal2/views.py @@ -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':