mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
adds fallback to PaymentDetailsField
This commit is contained in:
@@ -769,7 +769,10 @@ class PaymentDetailsField(serializers.Field):
|
||||
pp = value.payment_provider
|
||||
if not pp:
|
||||
return {}
|
||||
return pp.api_payment_details(value)
|
||||
try:
|
||||
return pp.api_payment_details(value)
|
||||
except Exception:
|
||||
return value.info_data
|
||||
|
||||
|
||||
class OrderPaymentSerializer(I18nAwareModelSerializer):
|
||||
|
||||
Reference in New Issue
Block a user