forked from CGM_Public/pretix_original
adds fallback to PaymentDetailsField (PRETIXEU-D6V) (#6041)
* adds fallback to PaymentDetailsField * return empty object instead of info_data
This commit is contained in:
committed by
GitHub
parent
aa420d4353
commit
58cce4b85e
@@ -769,7 +769,11 @@ class PaymentDetailsField(serializers.Field):
|
|||||||
pp = value.payment_provider
|
pp = value.payment_provider
|
||||||
if not pp:
|
if not pp:
|
||||||
return {}
|
return {}
|
||||||
return pp.api_payment_details(value)
|
try:
|
||||||
|
return pp.api_payment_details(value)
|
||||||
|
except Exception:
|
||||||
|
logger.exception("Failed to retrieve payment_details")
|
||||||
|
return {}
|
||||||
|
|
||||||
|
|
||||||
class OrderPaymentSerializer(I18nAwareModelSerializer):
|
class OrderPaymentSerializer(I18nAwareModelSerializer):
|
||||||
|
|||||||
Reference in New Issue
Block a user