Utilizing iOS 8 native credit card scanning?

In iOS 8, a user can scan his or her credit card (takes a picture) in both Safari and Apple Pay. Additionally, a web form can prompt a user to scan a credit card to autofill a form asking for payment info. This is done in html by setting a tag / name on the field, e.g. "<input name=cardNumer>..." Safari will then automaticaly prompt the user to use their camera (see links below).


Is there a way to take advantage of this functionality in a native iOS app, either via an apple API or by setting some field type parameters on an input field?

Example use case: user opens my app and tries to buy something, I prompt user to enter a credit card, she or he can then scan a card.


If a user adds a card directly through Safari settings they might have this option:

https://9to5mac.files.wordpress.com/2014/10/2014-10-02-08-41-21.png

If a user hasn't added a card already, they might have this option:

http://photos2.appleinsidercdn.com/gallery/9512-1291-safari-140609-l.png

Hi nimatthews


Is there a way that you can place a "scan credit card" link next to the credit card number field on a payment page and bypass the keyboard to go straight to the camera to scan the card? It would serve as a better call out than just waiting on the keyboard to display specially if people might miss the option to scan their card because they are so used to their old keyboard.


thanks

That option would work too - but I was specifically asking how to support that "scan credit card" functionality with Apple's built in technology. I'm currently using card.io, but using Apple's card scanning would be cleaner, both in design and code.

bump


any update on this nimatthews? I'm interested in this too.

+1 Would love to see an API for scanning a card

Hi EdnaMole,


Do you have a method to implement your suggestion? i.e. "place a "scan credit card" link next to the credit card number field on a payment page and bypass the keyboard to go straight to the camera to scan the card".


I keen to test this out but can't find any documentation on how to implement.


Thanks!

There are several third party solutions/SDKs available that can be integrated into iOS apps (below are just a few examples):


https://www.card.io

https://we.scanpay.it/concept

Are there any design docs about CardIO, highlighting the security aspects of the SDK and usage?

Card.io is product of Paypal. So in claims they say it's safe and useful.

Dyneti has a great card scanning solution for iOS apps (and Android as well). The accuracy is ~98% on a test set of 150 credit card formats. You can check it out here: dyneti.com
Utilizing iOS 8 native credit card scanning?
 
 
Q