For the fastest loading, this script should go in the <head> tag of every e-commerce page. Putting it on every page will provide the clearest picture of the transaction to Bolt's risk models. However, if you'd like to delay the loading of Bolt for performance reasons, you're welcome to include the script at any location on your page and it will initialize and start securing your page when it is loaded.
|5||merchant_key=[INSERT MERCHANT KEY]">|
|1||<div class="bolt-checkout-button" />|
You're welcome to place as many buttons as you'd like in a page. If you happen to place them into the page after the Bolt Connect script has already loaded, you can call BoltConnect.process() to trigger the script to render and activate the checkout buttons at any time.
In both inline and modal modes, Bolt Checkout can take parameters. These include, identifiers, cart contents, transaction amounts, etc.
The data could be JSON encoded and passed like this:
|8||desc: "Item1 is everything you'd expect from something called Item1",|
|15||desc: "Item2 makes Item1 obsolete",|
Bolt works in two ways, as a modal dialog over your page, or as an inline iframe embedded into your content. By default, Bolt checkout will run as a modal. If you desire inline mode for control over where Bolt Checkout loads, then embed the following markup in your page where you'd like Bolt Checkout to appear. The content will automatically resize the height of the container, but will keep the width set to it's bounding box.
|1||<div id="bolt-checkout" />|