{% import "_includes/forms" as forms %}
{{ 'Card 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) }}
{{ 'Card'|t('commerce') }} {% if supportsDiscovery or supportsAmex or supportsMastercard or supportsVisa %} {% if supportsDiscovery %} {% endif %} {% if supportsAmex %} {% endif %} {% if supportsMastercard %} {% endif %} {% if supportsVisa %} {% endif %}

We accept

{% endif %}
{{ forms.text({ name: 'encryptedNumber', maxlength: 19, placeholder: "Card Number"|t('commerce'), autocomplete: false, class: 'card-number pt-encrypt'~(paymentForm.getErrors('number') ? ' error'), value: paymentForm.encryptedNumber }) }}
{{ forms.text({ class: 'card-expiry'~(paymentForm.getErrors('month') or paymentForm.getErrors('year') ? ' error'), type: 'text', name: 'expiry', placeholder: "MM"|t('commerce')~' / '~"YYYY"|t('commerce'), value: paymentForm.expiry }) }} {{ forms.text({ type: 'tel', style: 'border: 1px solid #ddd; padding: 8px 12px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;', name: 'cvv', placeholder: "CVV"|t('commerce'), class: 'card-cvc pt-encrypt '~(paymentForm.getErrors('cvv') ? ' error'), value: paymentForm.cvv }) }}
{% set errors = [] %} {% for attributeKey in ['number', 'month', 'year', 'cvv'] %} {% set errors = errors|merge(paymentForm.getErrors(attributeKey)) %} {% endfor %} {{ forms.errorList(errors) }}