Framework

Apple Pay JS

Incorporate Apple Pay into OS X and iOS websites using JavaScript.

Overview

Using the Apple Pay JavaScript Framework

The ApplePay JS framework provides you with the means to incorporate Apple Pay directly into iOS and OS X Safari based websites. Users authorize payments using their iPhone or Apple Watch. There are three requirements for using Apple Pay on your website:

  • You must have an Apple Developer Account

  • Any pages that incorporate Apple Pay must be served over HTTPS

  • Your website must comply with the Apple Pay guidelines

Symbols

Classes

ApplePayPaymentAuthorizedEvent

The ApplePayPaymentAuthorizedEvent class defines the attributes contained by the onpaymentauthorized callback function.

ApplePayPaymentMethodSelectedEvent

The ApplePayPaymentMethodSelectedEvent class defines the attributes contained by the onpaymentmethodselected callback function.

ApplePaySession

Use the ApplePaySession class to manage the payment process on the web.

ApplePayShippingContactSelectedEvent

The ApplePayShippingContactSelectedEvent class defines the attributes contained by the onshippingmethodselected callback function.

ApplePayShippingMethodSelectedEvent

The ApplePayShippingMethodSelectedEvent class defines the attribute contained by the onshippingmethodselected callback function.

ApplePayValidateMerchantEvent

The ApplePayValidateMerchantEvent class defines the attributes contained by the onvalidatemerchant callback function.

Other Reference

ApplePay JS Data Types

This document describes the Apple Pay JS data types that are not described in individual class reference documents.