Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 831 Bytes

OpyPaymentInitializeOptions.md

File metadata and controls

40 lines (27 loc) · 831 Bytes

@bigcommerce/checkout-sdk / OpyPaymentInitializeOptions

Interface: OpyPaymentInitializeOptions

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

When Opy is initialized, a widget will be inserted into the DOM. The widget will open a modal that will show more information about Opy when clicking it.

example

<!-- This is where the Opy widget will be inserted -->
<div id="opy-widget"></div>
service.initializePayment({
    methodId: 'opy',
    opy: {
        containerId: 'opy-widget',
    },
});

Table of contents

Properties

Properties

containerId

containerId: string

The ID of a container which the payment widget should insert into.