@bigcommerce/checkout-sdk / 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
• container: string
The ID of a container which the sign-in button should insert into.
• Optional
shippingLabel: string
Shipping label to be passed to apple sheet.
• Optional
subtotalLabel: string
Sub total label to be passed to apple sheet.
▸ Optional
onClick(): void
A callback that gets called when wallet button clicked
void
▸ 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.
Name | Type | Description |
---|---|---|
error? |
Error |
The error object describing the failure. |
void
▸ onPaymentAuthorize(): void
A callback that gets called when a payment is successfully completed.
void