Skip to content

Latest commit

 

History

History
94 lines (62 loc) · 1.91 KB

BoltPaymentInitializeOptions.md

File metadata and controls

94 lines (62 loc) · 1.91 KB

@bigcommerce/checkout-sdk / BoltPaymentInitializeOptions

Interface: BoltPaymentInitializeOptions

A set of options that are required to initialize the Bolt payment method with:

  1. Bolt Full Checkout:

If the customer chooses to pay with Bolt, he will be asked to enter his payment details via Bolt Full Checkout.

service.initializePayment({
    methodId: 'bolt',
});
  1. Bolt Client:

If the customer chooses to pay with Bolt in payment section of Checkout page, the Bolt Payment Modal will be shown, and the customer will be asked to enter payment details via Bolt Modal

service.initializePayment({
    methodId: 'bolt',
    bolt: {
        useBigCommerceCheckout: true,
    }
});
  1. Bolt Embedded:

A set of options that are required to initialize the Bolt payment method for presenting its credit card form.

<!-- These containers are where the hosted (iframed) credit card field will be inserted -->
<div id="bolt-embedded"></div>
service.initializePayment({
    methodId: 'bolt',
    bolt: {
        useBigCommerceCheckout: true,
        containerId: 'boltEmbeddedContainerId',
    }
});

Table of contents

Properties

Methods

Properties

containerId

Optional containerId: string

The CSS selector of a container where the Bolt Embedded payment field should be inserted into.


useBigCommerceCheckout

useBigCommerceCheckout: boolean

Methods

onPaymentSelect

Optional onPaymentSelect(hasBoltAccount): void

A callback that gets called when the customer selects Bolt as payment option.

Parameters

Name Type
hasBoltAccount boolean

Returns

void