Skip to main content
Everything hangs off the global shoply, after init(). Calls that ask the server answer a promise of the envelope.

Starting

options may hold adaptivePricing: false, to be handed the store’s own prices and not the buyer’s, and timeout, in milliseconds, for how long to wait for an answer (20 seconds unless set).

Reading the store

The basket

Kept in the browser, for each store, so two stores open in one browser never share a cart.

Offers

What the store sets on its Upselling page. The checkout prices every offer again, so what the basket shows is a guide.

Checking out

Prices

Helpers

Events on your own site

The embed and the Checkout Kit send shoply:paid on window when an order is paid on your page.