PPv2: properly check for pending-payments in pending-renderer

This commit is contained in:
Martin Gross
2026-02-24 16:16:22 +01:00
parent e5c8f19984
commit 3398cda74b

View File

@@ -836,7 +836,7 @@ class PaypalMethod(BasePaymentProvider):
try: try:
if ( if (
payment.info payment.info
and payment.info_data['purchase_units'][0]['payments']['captures'][0]['status'] == 'pending' and payment.info_data['purchase_units'][0]['payments']['captures'][0]['status'] == 'PENDING'
): ):
retry = False retry = False
except (KeyError, IndexError): except (KeyError, IndexError):