SEPA Direct Debit Mandate Confirmation Template =============================================== What is the SEPA Direct Debit Mandate Confirmation template? ------------------------------------------------------------ The SEPA Direct Debit Mandate Confirmation template is the template file which is rendered when the SEPA Direct Debit payment method using Mollie gateway is used. Once this payment method is selected/used and the SEPA Direct Debit bank account details are submitted the SEPA Direct Debit Mandate Confirmation template is rendered where a user needs to confirm the SEPA Direct Debit Mandate in order to process further recurring payments. Why to change the SEPA Direct Debit Mandate Confirmation template? ------------------------------------------------------------------ There might be a reason to change that template in case there is a need to display a custom message to the user or to change the overall template's appearance. How to override SEPA Direct Debit Mandate Confirmation template? ---------------------------------------------------------------- The default template location is `src/PH/Bundle/PayumBundle/Resources/views/Action/sepa_mandate_confirmation.html.twig`_. To override the template, just copy the ``sepa_mandate_confirmation.html.twig`` template from the Payum bundle to ``app/Resources/PHPayumBundle/views/Action/sepa_mandate_confirmation.html.twig`` (the ``app/Resources/PHPayumBundle`` directory won't exist, so you'll need to create it). You're now free to customize the template. .. code-block:: twig {# app/Resources/PHPayumBundle/views/Action/sepa_mandate_confirmation.html.twig #}

SEPA Direct Debit Mandate

By providing your IBAN and confirming this payment, you are authorizing "Your Company Name" and Mollie, our payment service provider, to send instructions to your bank to debit your account and your bank to debit your account in accordance with those instructions. You are entitled to a refund from your bank under the terms and conditions of your agreement with your bank. A refund must be claimed within 8 weeks starting from the date on which your account was debited.

Creditor details:

Creditor Identifier Your creditor id
Name Creditor name
Address Creditor Address

Customer details:

IBAN {{ model.details.consumerAccount }}
Holder name {{ model.details.consumerName }}

Date of signing: {{ model.signatureDate }}

Go Back As you can see above, the ``actionUrl`` variable is defined which should be used as a form action. This variable defines an action URL to which the submitted form data will be sent. The ``cancelUrl`` variable prints the payment cancellation URL. If a user decides to go to that link, the payment process will be cancelled and a :doc:`Payment Cancellation Template ` will be rendered. There is also a ``model`` variable which is an array containing the details of the currently processed data from where you can get info about the currently submitted mandate. .. note:: You can use a ``dump`` (e.g. ``{{ dump(model) }}``) function to dump the value of ``model`` variable to find out what keys and values it contains. Note that ``dump`` function can be used only in the development environment. That's it! A new template will be rendered whenever the SEPA Direct Debit using Mollie gateway will be selected as a payment method and when the bank account details form will be submitted. .. _`src/PH/Bundle/PayumBundle/Resources/views/Action/sepa_mandate_confirmation.html.twig`: https://github.com/PayHelper/payments-hub/blob/master/src/PH/Bundle/PayumBundle/Resources/views/Action/sepa_mandate_confirmation.html.twig .. _`Forms`: https://symfony.com/doc/current/forms.html .. _`How to Customize Form Rendering`: https://symfony.com/doc/current/form/form_customization.html