Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.08 KB

AmazonPayV2ShippingInitializeOptions.md

File metadata and controls

40 lines (28 loc) · 1.08 KB

@bigcommerce/checkout-sdk / AmazonPayV2ShippingInitializeOptions

Interface: AmazonPayV2ShippingInitializeOptions

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

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

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

Table of contents

Properties

Properties

editAddressButtonId

Optional editAddressButtonId: string

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