diff --git a/views/twig/frontend/paymentbuttons.html.twig b/views/twig/frontend/paymentbuttons.html.twig index 6980e4ac..9018ee02 100644 --- a/views/twig/frontend/paymentbuttons.html.twig +++ b/views/twig/frontend/paymentbuttons.html.twig @@ -6,7 +6,7 @@ {% set aid = "" %} {% endif %} {% set sToken = oViewConf.getSessionChallengeToken() %} - const selfLink = "{{ oViewConf.getSslSelfLink()|raw }}"; + var selfLink = selfLink || "{{ oViewConf.getSslSelfLink()|raw }}"; {% if buttonId == "oscpaypal_sepa" or buttonId == "oscpaypal_cc_alternative" %} FUNDING_SOURCES = [ paypal.FUNDING.{% if buttonId == "oscpaypal_sepa" %}SEPA{% elseif buttonId == "oscpaypal_cc_alternative" %}CARD{% endif %}