Express Checkout WebElement Options
Parameters
Parameter | Required/Optional | Type | Description |
---|---|---|---|
type | required | string | Always "expressCheckout" . |
options | optional | object | Initialization Options |
options
Parameter | Required/Optional | Type | Description |
---|---|---|---|
layout | optional | string or object | Specifies the grid-like layout for buttons in the Express Checkout Element. The values can be: maxColumns: Maximum number of columns for button layout. Default: 0 (unlimited). |
buttonType | optional | Sets the preferred button type to display for each wallet. | |
buttonTheme | optional | Sets the preferred button type to display for each wallet. | |
buttonHeight | optional | integer | Sets the preferred button height of all buttons. Defaults to 45px. The allowed range is from 40px to 55px. |
paymentMethodOrder | optional | array | Defines the order in which the buttons are displayed. For example, to show Apple Pay first, add |
wallets | optional | Sets the display behavior for each wallet. |
buttonType
Parameter | Required/Optional | Type | Description |
---|---|---|---|
googlePay | optional | string | Google Pay's button type. The values are: The default is " |
applePay | optional | string | Apple Pay's button type. The values are: The default is " |
buttonTheme
Parameter | Required/Optional | Type | Description |
---|---|---|---|
googlePay | optional | string | Google Pay's button theme. The values are: "black" | "white" |
applePay | optional | string | Apple Pay's button theme. The values are: "black" | "white" | "white-outline" |
wallets
Parameter | Required/Optional | Type | Description |
---|---|---|---|
googlePay | optional | string | Whether you want to show Google Pay as an option or not. The values are: "auto" | "never" |
applePay | optional | string | Whether you want to show Apple Pay as an option or not. The values are: "auto" | "never" |
emailRequired | optional | boolean | Collects the email address of the user. |
phoneNumberRequired | optional | boolean | Collects the phone number of the user. |
Updated 3 months ago