PPv2: Do not put payments in pending-state if no capture has occured yet.

This commit is contained in:
Martin Gross
2026-02-24 16:07:16 +01:00
parent 5027f6dd59
commit e5c8f19984

View File

@@ -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())