Subbly.js SDK
Configure Subbly.js
Subbly.init takes your Storefront API key, and optionally a cart to load and a
customer to authenticate. For every field, see
Subbly.init(config).
Start with a cart and a customer
With loadCart: true, the SDK loads the cart named by cartId or by the
subbly_cart_id cookie, creates a new one when there is none, and copies the
cart currency onto the instance.
Your Storefront API key is in the Subbly admin, under Settings, Developers.
Next steps
- Build a checkout — from an empty cart to a paid order.
- Setup reference —
Subbly.init,VERSIONand the instance properties.
Last modified on