braintree-web/apple-pay

Accept Apple Pay on the Web. This component is currently in beta and is subject to change.

Source:

Members

(static) VERSION :string

The current version of the SDK, i.e. 3.91.0.

Source:

Methods

(static) create(options, callbackopt) → {Promise|void}

Parameters:
Name Type Attributes Description
options object

Creation options:

Properties
Name Type Attributes Description
client Client <optional>

A Client instance.

authorization string <optional>

A tokenizationKey or clientToken. Can be used in place of options.client.

useDeferredClient boolean <optional>

Used in conjunction with authorization, allows the Apple Pay instance to be available right away by fetching the client configuration in the background. When this option is used, ApplePay#createPaymentRequest will return a promise that resolves with the configuration instead of returning synchronously.

callback callback <optional>

The second argument, data, is the ApplePay instance. If no callback is provided, create returns a promise that resolves with the ApplePay instance.

Source: