Apple Pay on the Web
Support Apple Pay on your website with JavaScript-based APIs.
Overview
Safari supports two JavaScript APIs that let you accept Apple Pay payments from customers on your website:
Apple Pay JS API, analogous to the PassKit (Apple Pay and Wallet) framework for Apple Pay in apps
Apple Pay is available on all iOS devices with a Secure Element — an industry-standard, certified chip designed to store payment information safely. In macOS, to authorize the payment, users need a Mac with Touch ID, or an Apple Pay-capable iPhone or Apple Watch..
Apple Pay availability by region and platform
Apple Pay is available in supported regions.
The Apple Pay APIs are available in Safari on the following platforms:
Worldwide (except China) | China | |
|---|---|---|
Apple Pay JS | iOS 10 and later [Image] macOS 10.12 and later | iOS 11.2 and later [Image] (Not available in macOS) |
Payment Request API | iOS 11.3 and later [Image] macOS 10.12.6 and later, in Safari 11.1 and later | iOS 11.3 and later [Image] (Not available in macOS) |
In iOS, Safari and SFSafariViewController objects support Apple Pay.
See Checking for Apple Pay availability to ensure your implementation only displays the Apple Pay button on supported devices.
Apple Pay requirements
To use Apple Pay on your website, the requirements are:
A website that complies with the Apple Pay guidelines. For more information, see Acceptable Use Guidelines for Apple Pay on the Web.
An Apple Developer account and complete the registration. For more information, see Configuring Your Environment.
Serve all pages that include Apple Pay over HTTPS. For more information, see Setting Up Your Server.
For design guidance, see Human Interface Guidelines > Apple Pay.
Topics
Essentials
Apple Pay setup
Apple Pay merchandising
Apple order tracking button
Apple Pay buttons
Apple Pay JavaScript APIs
Choosing an API for Implementing Apple Pay on Your WebsiteApple Pay on the Web version historyApple Pay JS APIPayment Request API