Skip to content

Commit bbae1fb

Browse files
committed
MAGETWO-39525: Autocomplete is enabled on credit card form
1 parent a1472e2 commit bbae1fb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/code/Magento/Payment/view/frontend/web/template/payment/cc-form.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@
4242
<span><!-- ko text: $t('Credit Card Number')--><!-- /ko --></span>
4343
</label>
4444
<div class="control">
45-
<input type="text" name="payment[cc_number]" class="input-text" value=""
45+
<input type="number" name="payment[cc_number]" class="input-text" value=""
4646
data-bind="attr: {
47+
autocomplete: off,
4748
id: getCode() + '_cc_number',
4849
title: $t('Credit Card Number'),
4950
'data-container': getCode() + '-cc-number',
@@ -96,7 +97,7 @@
9697
<span><!-- ko text: $t('Card Verification Number')--><!-- /ko --></span>
9798
</label>
9899
<div class="control _with-tooltip">
99-
<input type="text" class="input-text cvv" name="payment[cc_cid]" value=""
100+
<input type="number" autocomplete="off" class="input-text cvv" name="payment[cc_cid]" value=""
100101
data-bind="attr: {id: getCode() + '_cc_cid', title: $t('Card Verification Number'), 'data-container': getCode() + '-cc-cvv', 'data-validate': JSON.stringify({'required-number':true, 'validate-card-cvv':'#' + getCode() + '_cc_type'})},
101102
enable: isActive($parents),
102103
value: creditCardVerificationNumber"/>
@@ -122,7 +123,7 @@
122123
<span><!-- ko text: $t('Issue Number')--><!-- /ko --></span>
123124
</label>
124125
<div class="control">
125-
<input type="text" name="payment[cc_ss_issue]"
126+
<input type="number" name="payment[cc_ss_issue]"
126127
value=""
127128
class="input-text cvv"
128129
data-bind="attr: {id: getCode() + '_cc_issue', title: $t('Issue Number'), 'data-container': getCode() + '-cc-issue', 'data-validate': JSON.stringify({'validate-cc-ukss':true})}, enable: isActive($parents)"/>

app/code/Magento/Payment/view/frontend/web/template/payment/iframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
-->
77
<!-- IFRAME for request to Payment Gateway -->
88
<iframe width="0" height="0" data-bind="src: getSource(), attr: {id: getCode() + '-transparent-iframe', 'data-container': getCode() + '-transparent-iframe'}" allowtransparency="true" frameborder="0" name="iframeTransparent" style="display:none;width:100%;background-color:transparent"></iframe>
9-
<form class="form" id="co-transparent-form" action="#" method="post" data-bind="mageInit: {
9+
<form class="form" id="co-transparent-form" autocomplete="off" action="#" method="post" data-bind="mageInit: {
1010
'transparent':{
1111
'controller': getControllerName(),
1212
'gateway': getCode(),

0 commit comments

Comments
 (0)