@@ -29,10 +29,10 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
29
29
class="admin__fieldset"
30
30
data-mage-init='{
31
31
"transparent":{
32
+ "cardFieldsMap":<?= $ block ->escapeHtml ($ block ->getCardFieldsMap ()) ?> ,
32
33
"controller":"<?= $ block ->escapeHtml ($ block ->getRequest ()->getControllerName ()) ?> ",
33
34
"gateway":"<?= /* @noEscape */ $ code ?> ",
34
35
"dateDelim":"<?= $ block ->escapeHtml ($ block ->getDateDelim ()) ?> ",
35
- "cardFieldsMap":<?= $ block ->escapeHtml ($ block ->getCardFieldsMap ()) ?> ,
36
36
"orderSaveUrl":"<?= $ block ->escapeUrl ($ block ->getOrderUrl ()) ?> ",
37
37
"cgiUrl":"<?= $ block ->escapeUrl ($ block ->getCgiUrl ()) ?> ",
38
38
"expireYearLength":"<?= $ block ->escapeHtml ($ block ->getMethodConfigData ('cc_year_length ' )) ?> ",
@@ -44,13 +44,12 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
44
44
<label for="<?= /* @noEscape */ $ code ?> _cc_type" class="admin__field-label">
45
45
<span><?= $ block ->escapeHtml (__ ('Credit Card Type ' )) ?> </span>
46
46
</label>
47
-
48
47
<div class="admin__field-control">
49
48
<select id="<?= /* @noEscape */ $ code ?> _cc_type"
49
+ class="admin__control-select"
50
50
data-container="<?= /* @noEscape */ $ code ?> -cc-type"
51
- name="payment[cc_type]"
52
51
data-validate='{required:true, "validate-cc-type-select":"#<?= /* @noEscape */ $ code ?> _cc_number"}'
53
- class="admin__control-select ">
52
+ name="payment[cc_type] ">
54
53
<option value=""><?= $ block ->escapeHtml (__ ('Please Select ' )) ?> </option>
55
54
<?php foreach ($ block ->getCcAvailableTypes () as $ typeCode => $ typeName ): ?>
56
55
<option
@@ -62,16 +61,16 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
62
61
</select>
63
62
</div>
64
63
</div>
65
-
66
64
<div class="admin__field _required field-number">
67
65
<label for="<?= /* @noEscape */ $ code ?> _cc_number" class="admin__field-label">
68
66
<span><?= $ block ->escapeHtml (__ ('Credit Card Number ' )) ?> </span>
69
67
</label>
70
-
71
68
<div class="admin__field-control">
72
- <input type="text" id="<?= /* @noEscape */ $ code ?> _cc_number"
69
+ <input type="text"
70
+ id="<?= /* @noEscape */ $ code ?> _cc_number"
73
71
data-container="<?= /* @noEscape */ $ code ?> -cc-number"
74
- name="payment[cc_number]" title="<?= $ block ->escapeHtml (__ ('Credit Card Number ' )) ?> "
72
+ name="payment[cc_number]"
73
+ title="<?= $ block ->escapeHtml (__ ('Credit Card Number ' )) ?> "
75
74
class="admin__control-text"
76
75
value=""
77
76
data-validate='{
@@ -81,12 +80,12 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
81
80
}'
82
81
autocomplete="off"/>
83
82
<?= /* @noEscape */ $ secureRenderer ->renderEventListenerAsTag (
84
- 'oncopy ' ,
83
+ 'oncut ' ,
85
84
"event.preventDefault(); " ,
86
85
'# ' . $ code . '_cc_number '
87
86
) ?>
88
87
<?= /* @noEscape */ $ secureRenderer ->renderEventListenerAsTag (
89
- 'oncut ' ,
88
+ 'oncopy ' ,
90
89
"event.preventDefault(); " ,
91
90
'# ' . $ code . '_cc_number '
92
91
) ?>
@@ -97,17 +96,17 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
97
96
) ?>
98
97
</div>
99
98
</div>
100
-
101
99
<div class="admin__field _required field-date" id="<?= /* @noEscape */ $ code ?> _cc_type_exp_div">
102
100
<label for="<?= /* @noEscape */ $ code ?> _expiration" class="admin__field-label">
103
101
<span><?= $ block ->escapeHtml (__ ('Expiration Date ' )) ?> </span>
104
102
</label>
105
103
106
104
<div class="admin__field-control">
107
- <select id="<?= /* @noEscape */ $ code ?> _expiration" name="payment[cc_exp_month]"
108
- data-container="<?= /* @noEscape */ $ code ?> -cc-month"
105
+ <select id="<?= /* @noEscape */ $ code ?> _expiration"
109
106
class="admin__control-select admin__control-select-month"
110
- data-validate='{required:true, "validate-cc-exp":"#<?= /* @noEscape */ $ code ?> _expiration_yr"}'>
107
+ data-container="<?= /* @noEscape */ $ code ?> -cc-month"
108
+ data-validate='{required:true, "validate-cc-exp":"#<?= /* @noEscape */ $ code ?> _expiration_yr"}'
109
+ name="payment[cc_exp_month]">
111
110
<?php foreach ($ block ->getCcMonths () as $ k => $ v ): ?>
112
111
<option
113
112
value="<?= /* @noEscape */ $ k ? $ block ->escapeHtml ($ k ) : '' ?> "
@@ -116,10 +115,11 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
116
115
</option>
117
116
<?php endforeach ?>
118
117
</select>
119
-
120
- <select id="<?= /* @noEscape */ $ code ?> _expiration_yr" name="payment[cc_exp_year]"
118
+ <select id="<?= /* @noEscape */ $ code ?> _expiration_yr"
121
119
class="admin__control-select admin__control-select-year"
122
- data-container="<?= /* @noEscape */ $ code ?> -cc-year" data-validate='{required:true}'>
120
+ data-container="<?= /* @noEscape */ $ code ?> -cc-year"
121
+ data-validate='{required:true}'
122
+ name="payment[cc_exp_year]">
123
123
<?php foreach ($ block ->getCcYears () as $ k => $ v ): ?>
124
124
<option
125
125
value="<?= /* @noEscape */ $ k ? $ block ->escapeHtml ($ k ) : '' ?> "
@@ -135,7 +135,6 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
135
135
<label for="<?= /* @noEscape */ $ code ?> _cc_cid" class="admin__field-label">
136
136
<span><?= $ block ->escapeHtml (__ ('Card Verification Number ' )) ?> </span>
137
137
</label>
138
-
139
138
<div class="admin__field-control">
140
139
<input type="text" title="<?= $ block ->escapeHtml (__ ('Card Verification Number ' )) ?> "
141
140
data-container="<?= /* @noEscape */ $ code ?> -cc-cvv"
@@ -145,12 +144,12 @@ $ccExpMonth = $block->getInfoData('cc_exp_month');
145
144
data-validate='{"required-number":true, "validate-cc-cvn":"#<?= /* @noEscape */ $ code?> _cc_type"}'
146
145
autocomplete="off"/>
147
146
<?= /* @noEscape */ $ secureRenderer ->renderEventListenerAsTag (
148
- 'oncopy ' ,
147
+ 'oncut ' ,
149
148
"event.preventDefault(); " ,
150
149
'# ' . $ code . '_cc_cid '
151
150
) ?>
152
151
<?= /* @noEscape */ $ secureRenderer ->renderEventListenerAsTag (
153
- 'oncut ' ,
152
+ 'oncopy ' ,
154
153
"event.preventDefault(); " ,
155
154
'# ' . $ code . '_cc_cid '
156
155
) ?>
0 commit comments