Init options
These options are passed toinitCheckout() (framework SDKs) or Commercengine.init() / new Checkout() (vanilla JS).
Credentials
Appearance
Authentication
When to use
authMode: "provided"Use this when your app already has its own login system and you want checkout to share the same session. Pass tokens at init and call updateTokens() when they change.Quick Buy
Managed in Checkout Studio
The following settings are configured remotely in Checkout Studio (Config API) and injected into checkout on each page load:- Feature flags (
loyalty,coupons,collectInStore,freeShippingProgress,productRecommendations) - Login configuration (enabled methods, account switch behavior)
- Drawer direction (mobile/desktop)
- Payment provider selection
- Brand appearance tokens (colors, typography, shape system, sizing)
Configuration precedence (source of truth)
Methods
These methods are available on the checkout instance (vanilla JS) or returned by the framework hook/composable.Runtime properties (vanilla JS)
Events
When using the vanilla JS SDK (@commercengine/js), you can listen to events with checkout.on(event, handler):
Recommended token sync pattern (Storefront SDK + Hosted Checkout)
If your storefront already uses@commercengine/storefront, run Hosted Checkout in provided mode and wire token sync both ways:
Environment URLs
The SDK is hosted at
https://cdn.commercengine.com/v1.js (single deployment). The environment option selects the hostname pattern, and storeId is encoded in the subdomain.