From ae5fa83da58c463a3441dce284a24097c0523700 Mon Sep 17 00:00:00 2001 From: Lukas Bockstaller Date: Thu, 6 Aug 2026 14:30:40 +0200 Subject: [PATCH] store payment.info during _execute_payment asap --- src/pretix/plugins/paypal2/payment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pretix/plugins/paypal2/payment.py b/src/pretix/plugins/paypal2/payment.py index c279ce2352..84f3edf605 100644 --- a/src/pretix/plugins/paypal2/payment.py +++ b/src/pretix/plugins/paypal2/payment.py @@ -677,6 +677,8 @@ class PaypalMethod(BasePaymentProvider): raise PaymentException(_('We had trouble communicating with PayPal')) else: pp_captured_order = response.result + payment.info = json.dumps(pp_captured_order.dict()) + payment.save() try: ReferencedPayPalObject.objects.get_or_create(order=payment.order, payment=payment, reference=pp_captured_order.id)