@bigcommerce/checkout-sdk / WithBuyNowFeature
-
AmazonPayV2ButtonConfig
↳
WithBuyNowFeature
- buttonColor
- buyNowInitializeOptions
- checkoutLanguage
- design
- ledgerCurrency
- merchantId
- placement
- productType
- sandbox
• Optional
buttonColor: AmazonPayV2ButtonColor
Color of the Amazon Pay button.
AmazonPayV2ButtonConfig.buttonColor
• Optional
buyNowInitializeOptions: Object
The options that are required to initialize Buy Now functionality.
Name | Type |
---|---|
getBuyNowCartRequestBody? |
() => void | default |
• Optional
checkoutLanguage: AmazonPayV2CheckoutLanguage
Language used to render the button and text on Amazon Pay hosted pages.
AmazonPayV2ButtonConfig.checkoutLanguage
• Optional
design: C0001
Sets Amazon Pay button design.
AmazonPayV2ButtonConfig.design
• ledgerCurrency: AmazonPayV2LedgerCurrency
Ledger currency provided during registration for the given merchant identifier.
AmazonPayV2ButtonConfig.ledgerCurrency
• merchantId: string
Amazon Pay merchant account identifier.
AmazonPayV2ButtonConfig.merchantId
• placement: AmazonPayV2Placement
Placement of the Amazon Pay button on your website.
AmazonPayV2ButtonConfig.placement
• Optional
productType: AmazonPayV2PayOptions
Product type selected for checkout. Default is 'PayAndShip'.
AmazonPayV2ButtonConfig.productType
• Optional
sandbox: boolean
Sets button to Sandbox environment. You do not have to set this parameter
if your publicKeyId
has an environment prefix. Default is false.
AmazonPayV2ButtonConfig.sandbox