CartStoreOptions
Properties
Section titled “Properties”commerce
Section titled “commerce”commerce:
CommerceClient
currency
Section titled “currency”currency:
string
The currency the cart is in (the store’s own by default): one entry per store and currency.
optionalnow?: () =>number
A clock, for tests.
Returns
Section titled “Returns”number
recognitionToken?
Section titled “recognitionToken?”
optionalrecognitionToken?: () =>string|null
The shopper’s recognition token at this moment, or null. Called for each request; its answer is never kept.
Returns
Section titled “Returns”string | null
storage?
Section titled “storage?”
optionalstorage?:StorageAdapter
Where the entries live. localStorageAdapter() by default.
storeKey
Section titled “storeKey”storeKey:
string
The store’s key: one entry per store, never one token shared between stores.