{% import "_includes/forms" as forms %}
{{ 'Check holder'|t('commerce') }}
{{ forms.text({ name: 'firstName', maxlength: 70, placeholder: "First Name"|t('commerce'), autocomplete: false, class: 'card-holder-first-name'~(paymentForm.getErrors('firstName') ? ' error'), value: paymentForm.firstName, required: true, }) }}
{{ forms.text({ name: 'lastName', maxlength: 70, placeholder: "Last Name"|t('commerce'), autocomplete: false, class: 'card-holder-last-name'~(paymentForm.getErrors('lastName') ? ' error'), value: paymentForm.lastName, required: true, }) }}
{% set errors = [] %} {% for attributeKey in ['firstName', 'lastName'] %} {% set errors = errors|merge(paymentForm.getErrors(attributeKey)) %} {% endfor %} {{ forms.errorList(errors) }}
{{ 'Check'|t('commerce') }}
Where do I find numbers
{{ forms.text({ class: 'check-routing'~(paymentForm.getErrors('routingNumber')? ' error'), type: 'text', name: 'routingNumber', placeholder: "Routing number"|t('commerce'), value: paymentForm.routingNumber }) }}
{{ forms.text({ name: 'bankAccount', maxlength: 12, placeholder: "Account number"|t('commerce'), autocomplete: false, class: 'check-account'~(paymentForm.getErrors('bankAccount') ? ' error'), value: paymentForm.bankAccount }) }}
{% set errors = [] %} {% for attributeKey in ['account', 'routing'] %} {% set errors = errors|merge(paymentForm.getErrors(attributeKey)) %} {% endfor %} {{ forms.errorList(errors) }}