@bigcommerce/checkout-sdk › AmazonPayCustomerInitializeOptions
A set of options that are required to initialize the customer step of checkout to support Amazon Pay.
When AmazonPay is initialized, a sign-in button will be inserted into the DOM. When the customer clicks on it, they will be redirected to Amazon to sign in.
- AmazonPayCustomerInitializeOptions
• color? : "Gold" | "LightGray" | "DarkGray"
The colour of the sign-in button.
• container: string
The ID of a container which the sign-in button should insert into.
• size? : "small" | "medium" | "large" | "x-large"
The size of the sign-in button.
▸ onError(error
: AmazonPayWidgetError | StandardError): 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 |
AmazonPayWidgetError | StandardError | The error object describing the failure. |
Returns: void