2 ms·
> we don't currently support Apply Pay through Insight. Apple does not allow a regular WKWebView to use Apple Pay, just Safari and SFSafariViewController Apple
by JimDabell 6y ago
> we don't currently support Apply Pay through Insight. Apple does not allow a regular WKWebView to use Apple Pay, just Safari and SFSafariViewController
Apple added Apple Pay to WKWebView in iOS 13. Release notes are here:
https://developer.apple.com/documentation/safari-release-notes/safari-13-release-notes#Payment-Request-API https://developer.apple.com/documentation/safari-release-not...
It won’t work for you out of the box because you inject scripts onto the page, which automatically disables Apple Pay for that view. But I expect you can do something useful here, like detect when a page is attempting to use Apple Pay and present a new view with injected scripts disabled and a note to the user about what has happened. Having Apple Pay work in an unmodified WKWebView is probably better than not having it work in a modified WKWebView.
- archajain 6y agoOh that's great to know, my information was totally stale. I <3 HN. Thank you!