Install Bolt Embed Script
Install the Bolt Embed Script into your storefront.
Before you can use the Bolt Accounts product, install the Bolt Embed Script to every page where a shopper can check out from your store.
<script
id="bolt-embed"
type="text/javascript"
src="{BASE_URL}/embed.js"
data-publishable-key="{your-bolt-publishable-key}"
async
></script>
Base URL Options
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
.
Bolt Publishable Key
Your Bolt Publishable Key ({your-bolt-publishable-key}
)can be found in the Merchant Dashboard. Go to the Developers tab, then scroll to Keys and find “Publishable Key.”
Next Steps
Next, embed the Address Component into your UI to enable shoppers to edit their addresses from your site.