{% 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 %}
{{ "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) }} |