When is the Scan Credit Card option available on iOS8 Safari?

前端 未结 9 923
情深已故
情深已故 2020-11-29 16:06

So Safari offers Scan Credit Card feature on iOS8 with some credit card forms.

My question is, how does Safari determine when to offer this option?<

9条回答
  •  青春惊慌失措
    2020-11-29 16:40

    For the expiration fields, based on Arnaud's answer, I found that the expiration fields would be recognized from cardExpirationYear and cardExpirationMonth being in the id attribute.

    This worked when the year and month are regular text inputs with the appropriate IDs. The month is populated as a 2-digit number and the year as a 4-digit number.

    In a quick test using

    I don't know what other values will work in the option tags.

提交回复
热议问题