Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.03 KB

AmazonPayV2PaymentInitializeOptions.md

File metadata and controls

40 lines (28 loc) · 1.03 KB

@bigcommerce/checkout-sdk / AmazonPayV2PaymentInitializeOptions

Interface: AmazonPayV2PaymentInitializeOptions

A set of options that are required to initialize the payment step of checkout in order to support AmazonPayV2.

When AmazonPayV2 is initialized, a change payment button will be bound. When the customer clicks on it, they will be redirected to Amazon to select a different payment method.

<!-- This is the change payment button that will be bound -->
<button id="edit-button">Change card</button>
service.initializePayment({
    methodId: 'amazonpay',
    amazonpay: {
        editButtonId: 'edit-button',
    },
});

Table of contents

Properties

Properties

editButtonId

Optional editButtonId: string

This editButtonId is used to set an event listener, provide an element ID if you want users to be able to select a different payment method by clicking on a button. It should be an HTML element.