Skip to content

CartStoreOptions

commerce: CommerceClient


currency: string

The currency the cart is in (the store’s own by default): one entry per store and currency.


optional now?: () => number

A clock, for tests.

number


optional recognitionToken?: () => string | null

The shopper’s recognition token at this moment, or null. Called for each request; its answer is never kept.

string | null


optional storage?: StorageAdapter

Where the entries live. localStorageAdapter() by default.


storeKey: string

The store’s key: one entry per store, never one token shared between stores.