📍 Bolt Help / Core Products / Accounts / Direct API / Install Bolt Embed Script
Install Bolt Embed Script
Install the Bolt Embed Script into your storefront.

Before you can use any Bolt Embedded product, install the Bolt Embed Script to every page where a shopper can check out from your store. This can include:

  • All Cart pages
  • All Checkout pages
  • Your Order Confirmation page
  • Your Order Failed page

Script

<script
    id="bolt-embed" 
    type="module" 
    src="{BASE_URL}/embed.module.js"
    data-publishable-key="{your-bolt-publishable-key}" 
    async
></script>
<script
    id="bolt-embed" 
    type="text/javascript" 
    src="{BASE_URL}/embed.js"
    data-publishable-key="{your-bolt-publishable-key}" 
    async
></script>
<script
    id="bolt-embed" 
    type="text/javascript" 
    src="{BASE_URL}/embed.js"
    data-publishable-key="{your-bolt-publishable-key}" 
></script>

Base URL

The Base URL (`{BASE_URL}`) should be one of the following, depending on the phase of your implementation process: - **Production**: `connect.bolt.com` - **Sandbox**: `connect-sandbox.bolt.com`

The value should replace `{BASE_URL}` in the script to create a full file string: `connect.bolt.com/embed.js`.

Publishable Key

Your Bolt Publishable Key (`{your-bolt-publishable-key}`)can be found in the [Merchant Dashboard](https://merchant.bolt.com). Go to the **Developers** tab, then scroll to **Keys** and find "Publishable Key."

Next Step

After you install the Embed Script, implement Auto Login to recognize shoppers with existing Bolt sessions and move directly to the payment step.

Filter by Section
Filter by Topic