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

This reverts commit e5c8f19984.
This commit is contained in:
Martin Gross
2026-02-24 16:55:57 +01:00
parent 3398cda74b
commit cb9c4466f9

View File

@@ -802,7 +802,7 @@ class PaypalMethod(BasePaymentProvider):
all_captures_completed = False
else:
any_captures = True
if any_captures and not all_captures_completed:
if not (any_captures and 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())