@bigcommerce/checkout-sdk / BoltPaymentInitializeOptions
A set of options that are required to initialize the Bolt payment method with:
- 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',
});
- 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,
}
});
- 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',
}
});
• Optional
containerId: string
The CSS selector of a container where the Bolt Embedded payment field should be inserted into.
• useBigCommerceCheckout: boolean
▸ Optional
onPaymentSelect(hasBoltAccount
): void
A callback that gets called when the customer selects Bolt as payment option.
Name | Type |
---|---|
hasBoltAccount |
boolean |
void