@@ -69,7 +69,8 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
69
69
</label>
70
70
71
71
<div class="admin__field-control">
72
- <input type="text" id="<?= /* @noEscape */ $ code ?> _cc_number"
72
+ <input id="<?= /* @noEscape */ $ code ?> _cc_number"
73
+ type="text"
73
74
data-container="<?= /* @noEscape */ $ code ?> -cc-number"
74
75
name="payment[cc_number]" title="<?= $ block ->escapeHtml (__ ('Credit Card Number ' )) ?> "
75
76
class="admin__control-text"
@@ -106,8 +107,8 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
106
107
<div class="admin__field-control">
107
108
<select id="<?= /* @noEscape */ $ code ?> _expiration"
108
109
name="payment[cc_exp_month]"
109
- data-container="<?= /* @noEscape */ $ code ?> -cc-month"
110
110
class="admin__control-select admin__control-select-month"
111
+ data-container="<?= /* @noEscape */ $ code ?> -cc-month"
111
112
data-validate='{required:true, "validate-cc-exp":"#<?= /* @noEscape */ $ code ?> _expiration_yr"}'>
112
113
<?php foreach ($ block ->getCcMonths () as $ k => $ v ): ?>
113
114
<option
@@ -121,7 +122,8 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
121
122
<select id="<?= /* @noEscape */ $ code ?> _expiration_yr"
122
123
name="payment[cc_exp_year]"
123
124
class="admin__control-select admin__control-select-year"
124
- data-container="<?= /* @noEscape */ $ code ?> -cc-year" data-validate='{required:true}'>
125
+ data-container="<?= /* @noEscape */ $ code ?> -cc-year"
126
+ data-validate='{required:true}'>
125
127
<?php foreach ($ block ->getCcYears () as $ k => $ v ): ?>
126
128
<option
127
129
value="<?= /* @noEscape */ $ k ? $ block ->escapeHtml ($ k ) : '' ?> "
@@ -141,11 +143,11 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
141
143
<div class="admin__field-control">
142
144
<input type="text"
143
145
title="<?= $ block ->escapeHtml (__ ('Card Verification Number ' )) ?> "
144
- data-container="<?= /* @noEscape */ $ code ?> -cc-cvv"
145
146
class="admin__control-text cvv"
146
147
id="<?= /* @noEscape */ $ code ?> _cc_cid"
147
148
name="payment[cc_cid]"
148
149
value=""
150
+ data-container="<?= /* @noEscape */ $ code ?> -cc-cvv"
149
151
data-validate='{"required-number":true, "validate-cc-cvn":"#<?= /* @noEscape */ $ code?> _cc_type"}'
150
152
autocomplete="off"/>
151
153
<?= /* @noEscape */ $ secureRenderer ->renderEventListenerAsTag (
0 commit comments