mirror of
https://github.com/pretix/pretix.git
synced 2026-04-25 23:42:32 +00:00
Dekodi: Try to find correct PayPal ID
This commit is contained in:
@@ -50,7 +50,7 @@ class DekodiNREIExporter(BaseExporter):
|
||||
if p.provider == 'paypal':
|
||||
paypal_email = p.info_data.get('payer', {}).get('payer_info', {}).get('email')
|
||||
try:
|
||||
ppid = p.info_data['transactions'][0]['related_resources']['sale']['id']
|
||||
ppid = p.info_data['transactions'][0]['related_resources'][0]['sale']['id']
|
||||
except:
|
||||
ppid = p.info_data.get('id')
|
||||
payments.append({
|
||||
|
||||
Reference in New Issue
Block a user