Skip to content

Commit 67bf2db

Browse files
author
hwyu@adobe.com
committed
MC-42311: 2.4.3 stabilization
- Fixed static test failure
1 parent 6530883 commit 67bf2db

File tree

1 file changed

+24
-13
lines changed
  • app/code/Magento/Payment/view/frontend/templates/transparent

1 file changed

+24
-13
lines changed

app/code/Magento/Payment/view/frontend/templates/transparent/form.phtml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ $content = '<img src=\"' . $block->escapeUrl($block->getViewFileUrl('Magento_Che
6666
<span><?= $block->escapeHtml(__('Credit Card Number')) ?></span>
6767
</label>
6868
<div class="control">
69-
<input type="number" id="<?= /* @noEscape */ $code ?>_cc_number"
69+
<input id="<?= /* @noEscape */ $code ?>_cc_number"
70+
type="number"
7071
data-container="<?= /* @noEscape */ $code ?>-cc-number" name="payment[cc_number]"
71-
title="<?= $block->escapeHtml(__('Credit Card Number')) ?>" class="input-text" value=""
72+
title="<?= $block->escapeHtml(__('Credit Card Number')) ?>"
73+
class="input-text"
74+
value=""
7275
data-validate='{
7376
"required-number":true,
7477
"validate-cc-number":"#<?= /* @noEscape */ $code ?>_cc_type",
@@ -81,12 +84,12 @@ $content = '<img src=\"' . $block->escapeUrl($block->getViewFileUrl('Magento_Che
8184
'#' . $code . '_cc_number'
8285
) ?>
8386
<?= /* @noEscape */ $secureRenderer->renderEventListenerAsTag(
84-
'oncut',
87+
'onpaste',
8588
"event.preventDefault();",
8689
'#' . $code . '_cc_number'
8790
) ?>
8891
<?= /* @noEscape */ $secureRenderer->renderEventListenerAsTag(
89-
'onpaste',
92+
'oncut',
9093
"event.preventDefault();",
9194
'#' . $code . '_cc_number'
9295
) ?>
@@ -100,8 +103,10 @@ $content = '<img src=\"' . $block->escapeUrl($block->getViewFileUrl('Magento_Che
100103
<div class="fields group group-2">
101104
<div class="field no-label month">
102105
<div class="control">
103-
<select id="<?= /* @noEscape */ $code ?>_expiration" name="payment[cc_exp_month]"
104-
data-container="<?= /* @noEscape */ $code ?>-cc-month" class="month"
106+
<select id="<?= /* @noEscape */ $code ?>_expiration"
107+
name="payment[cc_exp_month]"
108+
data-container="<?= /* @noEscape */ $code ?>-cc-month"
109+
class="month"
105110
data-validate='{
106111
required:true,
107112
"validate-cc-exp":"#<?= /* @noEscape */ $code ?>_expiration_yr"
@@ -117,8 +122,10 @@ $content = '<img src=\"' . $block->escapeUrl($block->getViewFileUrl('Magento_Che
117122
</div>
118123
<div class="field no-label year">
119124
<div class="control">
120-
<select id="<?= /* @noEscape */ $code ?>_expiration_yr" name="payment[cc_exp_year]"
121-
class="year" data-container="<?= /* @noEscape */ $code ?>-cc-year"
125+
<select id="<?= /* @noEscape */ $code ?>_expiration_yr"
126+
name="payment[cc_exp_year]"
127+
class="year"
128+
data-container="<?= /* @noEscape */ $code ?>-cc-year"
122129
data-validate='{required:true}'>
123130
<?php foreach ($block->getCcYears() as $k => $v): ?>
124131
<option value="<?= /* @noEscape */ $k ? $block->escapeHtml($k) : '' ?>"
@@ -138,9 +145,13 @@ $content = '<img src=\"' . $block->escapeUrl($block->getViewFileUrl('Magento_Che
138145
<span><?= $block->escapeHtml(__('Card Verification Number')) ?></span>
139146
</label>
140147
<div class="control">
141-
<input type="number" title="<?= $block->escapeHtml(__('Card Verification Number')) ?>"
142-
data-container="<?= /* @noEscape */ $code ?>-cc-cvv" class="input-text cvv"
143-
id="<?= /* @noEscape */ $code ?>_cc_cid" name="payment[cc_cid]" value=""
148+
<input id="<?= /* @noEscape */ $code ?>_cc_cid"
149+
name="payment[cc_cid]"
150+
type="number"
151+
title="<?= $block->escapeHtml(__('Card Verification Number')) ?>"
152+
data-container="<?= /* @noEscape */ $code ?>-cc-cvv"
153+
class="input-text cvv"
154+
value=""
144155
data-validate='{
145156
"required-number":true,
146157
"validate-cc-cvn":"#<?= /* @noEscape */ $code ?>_cc_type"
@@ -151,12 +162,12 @@ $content = '<img src=\"' . $block->escapeUrl($block->getViewFileUrl('Magento_Che
151162
'#' . $code . '_cc_cid'
152163
) ?>
153164
<?= /* @noEscape */ $secureRenderer->renderEventListenerAsTag(
154-
'oncut',
165+
'onpaste',
155166
"event.preventDefault();",
156167
'#' . $code . '_cc_cid'
157168
) ?>
158169
<?= /* @noEscape */ $secureRenderer->renderEventListenerAsTag(
159-
'onpaste',
170+
'oncut',
160171
"event.preventDefault();",
161172
'#' . $code . '_cc_cid'
162173
) ?>

0 commit comments

Comments
 (0)