{% sw_extends '@Framework/documents/invoice.html.twig' %} {% block document_head %} {{ parent() }} {% sw_include '@Framework/documents/unzer-payment-style.css.twig' %} {% endblock %} {% block document_payment_shipping %} {{ parent() }} {% for transaction in order.transactions %} {% set transferInfo = null %} {% if transaction.extensions.unzerTransferInfo is defined and transaction.extensions.unzerTransferInfo is not null %} {% set transferInfo = transaction.extensions.unzerTransferInfo %} {% elseif transaction.customFields[constant('UnzerPayment6\\Installer\\CustomFieldInstaller::UNZER_PAYMENT_TRANSFER_INFO')] is defined and transaction.customFields[constant('UnzerPayment6\\Installer\\CustomFieldInstaller::UNZER_PAYMENT_TRANSFER_INFO')] is not null %} {% set transferInfo = transaction.customFields[constant('UnzerPayment6\\Installer\\CustomFieldInstaller::UNZER_PAYMENT_TRANSFER_INFO')] %} {% endif %} {% if transferInfo is defined and transferInfo is not null %}
{% block document_payment_shipping_unzer_paymenttransfer_info_title %}
{{ "UnzerPayment.transferInformation.title" | trans }}
{% endblock %} {% block document_payment_shipping_unzer_paymenttransfer_info_message %}

{{ "UnzerPayment.transferInformation.message"|trans({'%amount%': (transferInfo.amount|currency(currencyIsoCode))}) }}

{% endblock %} {% block document_payment_shipping_unzer_paymenttransfer_info_table %}
{{ "UnzerPayment.transferInformation.iban" | trans }} {{ transferInfo.iban }}
{{ "UnzerPayment.transferInformation.bic" | trans }} {{ transferInfo.bic }}
{{ "UnzerPayment.transferInformation.holder" | trans }} {{ transferInfo.holder }}
{{ "UnzerPayment.transferInformation.descriptor" | trans }} {{ transferInfo.descriptor }}
{{ "UnzerPayment.transferInformation.amount" | trans }} {{ transferInfo.amount|currency(currencyIsoCode) }}
{% endblock %}
{% endif %} {% endfor %} {% endblock %} {% block document_payment_shipping_inner %} {{ parent() }} {% if order.transactions.last.paymentMethodId == constant('UnzerPayment6\\Installer\\PaymentInstaller::PAYMENT_ID_PAYLATER_INSTALLMENT') %}

{{ "UnzerPayment.transferInformation.installmentInfo" | trans }}

{% endif %} {% endblock %}