Skip to content

Type Alias: ZynoSalesStorefront ​

ZynoSalesStorefront = object

A complete, JavaScript-only ecommerce storefront instance.

Properties ​

cart ​

readonly cart: CartSession

Persistent cart session with serialized mutations and render-safe snapshots.


catalog ​

readonly catalog: CatalogApi

Product catalog reads with an explicit in-memory list cache.


checkout ​

readonly checkout: CheckoutCoordinator

Buyer, delivery, discount, payment, and recovery workflows.


client ​

readonly client: ZynoSalesClient

Low-level generated Sales client for advanced integrations.

Methods ​

getConfig() ​

getConfig(): Promise<ISalesEcommStorefrontConfigResponse>

Cached runtime storefront configuration from Sales.

Returns ​

Promise<ISalesEcommStorefrontConfigResponse>


getStripeConfiguration() ​

getStripeConfiguration(): Promise<StripeBrowserConfiguration | null>

Stripe.js options derived from runtime configuration, or null when cards are unavailable.

Returns ​

Promise<StripeBrowserConfiguration | null>


refreshConfig() ​

refreshConfig(): Promise<ISalesEcommStorefrontConfigResponse>

Forces a fresh configuration read from Sales.

Returns ​

Promise<ISalesEcommStorefrontConfigResponse>

MIT Licensed