How does Chrome detect Credit Card fields?

后端 未结 5 1590
花落未央
花落未央 2020-12-01 08:07

In some forms, Chrome autofill prompts with Credit card autofill.

EDIT:Adding screenshot. This is not the same as browser autocomplete. You need not have entered the

5条回答
  •  暖寄归人
    2020-12-01 08:55

    Thanks @goodeye for directing me to the correct answer.

    To trigger the Credit Card autofill,

    1. SSL must be enabled on your form
    2. Most variants of standard credit card field names should work if SSL is enabled.

    Here is a link to the regexes Chrome uses to trigger detection

提交回复
热议问题