From ef3d44e581d42eeeed1313019da5d2c22328bae8 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 14 Jul 2023 16:49:33 +0200 Subject: [PATCH] Stripe: Fix crash in rendering of bancontact payments --- .../stripe/templates/pretixplugins/stripe/control.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pretix/plugins/stripe/templates/pretixplugins/stripe/control.html b/src/pretix/plugins/stripe/templates/pretixplugins/stripe/control.html index 0711c73fb6..c5d0ce999d 100644 --- a/src/pretix/plugins/stripe/templates/pretixplugins/stripe/control.html +++ b/src/pretix/plugins/stripe/templates/pretixplugins/stripe/control.html @@ -26,8 +26,10 @@ {% if payment_info.source.type == "bancontact" %}
{% trans "Bank" %}
{{ payment_info.source.bancontact.bank_name }} ({{ payment_info.source.bancontact.bic }})
-
{% trans "Payer name" %}
-
{{ payment_info.source.owner.verified_name|default:payment_info.source.owner.name }}
+ {% if owner in payment_info.source %} +
{% trans "Payer name" %}
+
{{ payment_info.source.owner.verified_name|default:payment_info.source.owner.name }}
+ {% endif %} {% endif %} {% if payment_info.source.type == "ideal" %}
{% trans "Bank" %}