{# compatible with < sw6.4 #} {% sw_extends '@Storefront/storefront/component/payment/payment-fields.html.twig' %} {% block component_payment_method_input %} {% endblock %} {% block component_payment_method_description %} {% if "MolliePayments" in payment.handlerIdentifier and page.extensions.MollieTestModePageExtension.testMode == true %}
{{ payment.translated.name }} ({{ "molliePayments.testMode.label"|trans }}) {% if payment.translated.description %}

{{ payment.translated.description|raw }}

{% endif %}
{% else %} {{ parent() }} {% endif %} {% endblock %} {% block component_payment_method_control %} {{ parent() }} {# load mollie creditcard components #} {% if payment.translated.customFields.mollie_payment_method_name == 'creditcard' %} {% sw_include '@MolliePayments/storefront/component/payment/component/cc-fields.html.twig' with { showIfActive: false } %} {% elseif payment.translated.customFields.mollie_payment_method_name == 'pointofsale' %} {% sw_include '@MolliePayments/storefront/component/payment/component/pos-fields.html.twig' %} {% elseif payment.translated.customFields.mollie_payment_method_name == 'bancomatpay' %} {% sw_include '@MolliePayments/storefront/component/payment/component/bancomat-fields.html.twig' %} {% endif %} {% endblock %}