Contents

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 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:

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

Supported payment networks

Errors

Apple Pay JS SDK change log