What this is (and what it is not)
| Use case | Best choice |
|---|---|
| Open checkout in a modal from any page | Checkout Embed SDK (window.Shoppex) |
| Build a full storefront UI (products/cart/state) | Storefront SDK (@shoppex/sdk) |
Naming we should keep in docs and product language:
- Product name: Checkout Embed SDK
- Short name: Embed SDK
- JS global:
window.Shoppex
Quick Start
Option A: Data attributes (fastest)
Option B: JavaScript API (more control)
Common events
Current behavior to know
- Multiple
itemsare accepted by the API, but current modal flow uses the first valid item. - Quantity is normalized to
1..999. - Invalid or empty
itemsdo not open checkout.
Next Steps
Copy/Paste Snippets
Ready-to-use snippets for Next.js, React, WordPress, and Webflow.
Embed SDK Reference
Full config, data attributes, API methods, and event contracts.
Security & Troubleshooting
CSP, origin rules, and production debugging checklist.
Embed Demo
Interactive demo with real embed patterns.
Storefront SDK
Build full storefront UI when modal-only checkout is not enough.