forked from CGM_Public/pretix_original
Dekodi: Try to find correct PayPal ID
This commit is contained in:
@@ -50,7 +50,7 @@ class DekodiNREIExporter(BaseExporter):
|
|||||||
if p.provider == 'paypal':
|
if p.provider == 'paypal':
|
||||||
paypal_email = p.info_data.get('payer', {}).get('payer_info', {}).get('email')
|
paypal_email = p.info_data.get('payer', {}).get('payer_info', {}).get('email')
|
||||||
try:
|
try:
|
||||||
ppid = p.info_data['transactions'][0]['related_resources']['sale']['id']
|
ppid = p.info_data['transactions'][0]['related_resources'][0]['sale']['id']
|
||||||
except:
|
except:
|
||||||
ppid = p.info_data.get('id')
|
ppid = p.info_data.get('id')
|
||||||
payments.append({
|
payments.append({
|
||||||
|
|||||||
Reference in New Issue
Block a user