The new iOS8 Scan Credit Card option is great on Safari.
Has someone managed to make it work inside a WebView for a web app?
I am using a valid SSL certificate, and I am using the correct ID for input filed as described here: https://stackoverflow.com/a/25925195/3949713
Thanks.
No, this option is not available in neither UIWebView
nor WKWebView
.
Your best bet is to use SFSafariViewController
instead. The reason it works there is because it runs in a separate process, to prevent your app from getting access to this security-relevant information.
来源:https://stackoverflow.com/questions/26520578/is-the-scan-credit-card-option-available-on-the-webview