Skip to content

CreatedCart

Describes@ebitex/commerce-sdk 0.2.xSee the changelog:@ebitex/commerce-sdk

CreatedCart = Cart & object

A cart as createCart returns it: the cart plus its cartToken, a secret that is the shopper’s key to this one cart. It is returned this once and never again, so keep it (on the shopper’s device, or on your server beside the cart id) and send it on every call about the cart and about the order the cart became. Never put it in a URL, a log line, an analytics event or a request to any other service. It opens one cart (and, after payment, that one order for 30 days) and nothing else; it is not the shopper’s identity.

cartToken: string