I am trying to find a way to programmatically disable Chrome's "Do you want save this credit card info" prompt.
I have tried adding autocomplete="off"
to all the inputs as well as the form, yet this prompt still comes up.
Is there a way to disable this programmatically?
Unfortunately, this is different from Disable browser 'Save Password' functionality because this all revolves around tricking Chrome into thinking the input field is not a password field / simply using autocomplete="off"
, however Chrome no longer acknowledges autocomplete="off"
.
This is the banner I'm referring to:
Open Chrome, tap on the three dots and go to Settings, followed by Payment methods. Any previous payment methods you added will show up here. If you only want to disable the feature and not remove any credit card information, toggle the feature off.
The only piece of information hackers still don't have is your CVV number and the only way for them to obtain that number is through phishing attacks. If you have the autofill option enabled, you put yourself at risk of hackers being able to make purchases with your card.
Google uses the credit card and debit card numbers you provide to facilitate payments for the online or offline purchases you make, including Google Play and Google Pay transactions, and for fraud mitigation purposes.
What I did is using a hidden field for Credit Card Number and Save the actual credit card number in it then clear the actual Credit Card number from screen by JScript.
I had the same problem you're experiencing; and with a newer browser version.
To resolve this, you have to set autocomplete at form element.
<form autocomplete="off" action="/cc.html" method="POST">
<!-- Form fields -->
<input type="text" name="cc" id="cc" />
<!-- More form fields -->
</form>
For some reason Google Chrome ignores the autocomplete="off"
at <input type="text" />
for Credit Card prompts, but doesn't prompt when you set it with <form>
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With