Can i use Apple Pay JS for my app?

Hello,
can i use the Apple Pay Js for my app and submit it to the store? Will it pass the verification?
Thanks

can i use the Apple Pay Js for my app

You can in a WKWebView, but when you process the payment it is recommended to bridge the payment over to the native app and use PKPaymentRequest to handle the payment request. See a code sample for doing so here.



Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Thank you for reply.
I made a web app using php/mysql/js, i want to embed it in a WKWebView and use the Apple Pay to pay in app purchase.
So, can you confirm that i can do it? Thanks

I made a web app using php/mysql/js, i want to embed it in a WKWebView and use the Apple Pay to pay in app purchase.
So, can you confirm that i can do it?

You can run your PHP / MySQL on your server/container, and then use that server/container to serve the HTML / JS to the WKWebView to run in your native app. You cannot run PHP / MySQL directly in a WKWebView.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Can i use Apple Pay JS for my app?
 
 
Q