- Safari Desktop 10.0+
- Safari Mobile 10.0+
The Apple Pay JS API lets you accept Apple Pay payments on the web. The Apple Pay JS API is supported on the following platforms:
iOS 10 and later. Apple Pay JS is supported on all iOS devices with a Secure Element. It is supported both in Safari and in
macOS 10.12 and later. Apple Pay JS is supported in Safari. The user must have an iPhone or Apple Watch to authorize the payment, or a MacBook Pro with Touch ID.
Apple Pay is available in supported regions.
The Apple Pay JS API is analogous to the PassKit framework for using Apple Pay in apps. If you have used the PassKit API, then the Apple Pay JS API should feel familiar to you.
Sample code is available here: EmporiumWeb: Request and handle Apple Pay payments on the web.
Apple Pay Requirements
There are three requirements for using Apple Pay on your website:
You must have an Apple Developer Account.
All pages that incorporate Apple Pay must be served over HTTPS.
Your website must comply with the Apple Pay guidelines. For more information, see Apple Pay on the Web: Acceptable Use Guidelines.