mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
PP/PPv2: Fix display of retry-message on pending captures (Fixes: PRETIXEU-6ZF)
This commit is contained in:
@@ -703,7 +703,7 @@ class PaypalMethod(BasePaymentProvider):
|
||||
and payment.info_data['purchase_units'][0]['payments']['captures'][0]['status'] == 'pending'
|
||||
):
|
||||
retry = False
|
||||
except KeyError:
|
||||
except (KeyError, IndexError):
|
||||
pass
|
||||
template = get_template('pretixplugins/paypal2/pending.html')
|
||||
ctx = {'request': request, 'event': self.event, 'settings': self.settings,
|
||||
|
||||
Reference in New Issue
Block a user