Skip to content

Latest commit

 

History

History
67 lines (38 loc) · 1.65 KB

amazonpaycustomerinitializeoptions.md

File metadata and controls

67 lines (38 loc) · 1.65 KB

@bigcommerce/checkout-sdkAmazonPayCustomerInitializeOptions

Interface: 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.

Hierarchy

  • AmazonPayCustomerInitializeOptions

Index

Properties

Methods

Properties

Optional color

color? : "Gold" | "LightGray" | "DarkGray"

The colour of the sign-in button.


container

container: string

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


Optional size

size? : "small" | "medium" | "large" | "x-large"

The size of the sign-in button.

Methods

Optional onError

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