Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent Chrome from requesting to save credit card information

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:

Do you want chrome to save your credit card information

like image 686
whatsnewsaes Avatar asked Mar 25 '15 16:03

whatsnewsaes


People also ask

How do I get Chrome to stop asking to save credit cards?

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.

Is it safe to save credit card info in Chrome?

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.

Why does Google want my credit card number?

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.


2 Answers

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.

like image 96
Barsham Avatar answered Nov 02 '22 19:11

Barsham


I had the same problem you're experiencing; and with a newer browser version.

Save card prompt

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>.

like image 27
Patrick W Avatar answered Nov 02 '22 19:11

Patrick W