Embed code examples
Where to paste the checkout widget on your website, shown with this site's demo store.
Your store's embed code
The code on this page embeds this site's demo store. Your own embed code — with your business ID and your store's publishable key — is in your dashboard.
Embed code
Where to paste it on HTML/JavaScript
- Copy the code snippet above
- Paste it before the closing </body> tag in your HTML
- For your own store, copy the embed code from your dashboard — it carries your business ID and publishable key
Buttons that open the widget
Add these buttons anywhere on a page that carries the embed code.
Buy now button
<button data-buyverse-action="buy">
Buy Now
</button>Add to cart button
<button data-buyverse-action="add-to-cart">
Add to Cart
</button>Open widget button
<button data-buyverse-action="open">
View Products
</button>