Skip to content

Latest commit

 

History

History
90 lines (50 loc) · 1.79 KB

ApplePayCustomerInitializeOptions.md

File metadata and controls

90 lines (50 loc) · 1.79 KB

@bigcommerce/checkout-sdk / ApplePayCustomerInitializeOptions

Interface: ApplePayCustomerInitializeOptions

A set of options that are required to initialize the customer step of checkout in order to support ApplePay.

When ApplePay is initialized, a sign-in button will be inserted into the DOM. When the customer clicks on it, it will trigger apple sheet

Table of contents

Properties

Methods

Properties

container

container: string

The ID of a container which the sign-in button should insert into.


shippingLabel

Optional shippingLabel: string

Shipping label to be passed to apple sheet.


subtotalLabel

Optional subtotalLabel: string

Sub total label to be passed to apple sheet.

Methods

onClick

Optional onClick(): void

A callback that gets called when wallet button clicked

Returns

void


onError

Optional onError(error?): void

A callback that gets called if unable to initialize the widget or select one of the address options provided by the widget.

Parameters

Name Type Description
error? Error The error object describing the failure.

Returns

void


onPaymentAuthorize

onPaymentAuthorize(): void

A callback that gets called when a payment is successfully completed.

Returns

void