mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
PP/PPv2: Fix display of retry-message on pending captures
This commit is contained in:
@@ -468,7 +468,10 @@ class Paypal(BasePaymentProvider):
|
||||
def payment_pending_render(self, request, payment) -> str:
|
||||
retry = True
|
||||
try:
|
||||
if payment.info and payment.info_data['state'] == 'pending':
|
||||
if (
|
||||
payment.info
|
||||
and payment.info_data['transactions'][0]['related_resources'][0]['sale']['state'] == 'pending'
|
||||
):
|
||||
retry = False
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user