Safari autofill Credit Card

前端 未结 5 474
心在旅途
心在旅途 2021-02-05 23:24

I am trying to use the code below to use \"Safari\'s AutoFill\" of the credit card. But it did not work


&l         


        
5条回答
  •  逝去的感伤
    2021-02-06 00:27

    It seems that the HTML Standard autofill tokens are working too (tested in Safari 11.1):

    https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill

    For example:

     Name
    Number
    / Exp
    CSC

    I found that expiration month and year should be next to each other in order to Safari to find it. CSC field will not be filled to maintain an another layer of security.

提交回复
热议问题