From e5c8f199845f8d4a942fc09d272aa0374671258f Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Tue, 24 Feb 2026 16:07:16 +0100 Subject: [PATCH] PPv2: Do not put payments in pending-state if no capture has occured yet. --- src/pretix/plugins/paypal2/payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/paypal2/payment.py b/src/pretix/plugins/paypal2/payment.py index 6296cb554..ec374eb9e 100644 --- a/src/pretix/plugins/paypal2/payment.py +++ b/src/pretix/plugins/paypal2/payment.py @@ -802,7 +802,7 @@ class PaypalMethod(BasePaymentProvider): all_captures_completed = False else: any_captures = True - if not (any_captures and all_captures_completed): + if any_captures and not all_captures_completed: messages.warning(request, _('PayPal has not yet approved the payment. We will inform you as ' 'soon as the payment completed.')) payment.info = json.dumps(pp_captured_order.dict())