mirror of
https://github.com/pretix/pretix.git
synced 2026-08-24 13:02:00 +00:00
adds fallback to PaymentDetailsField
This commit is contained in:
@@ -769,7 +769,10 @@ 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:
|
||||||
|
return value.info_data
|
||||||
|
|
||||||
|
|
||||||
class OrderPaymentSerializer(I18nAwareModelSerializer):
|
class OrderPaymentSerializer(I18nAwareModelSerializer):
|
||||||
|
|||||||
Reference in New Issue
Block a user