Your bag, at a glance.
Your bag is empty.
Add a mattress to see the delivery, the pillow bundle and the totals at work.
Items
Connecting a real checkout
The cart is plain data (product, size, option, quantity) kept in the browser, so it plugs into the usual options. The README walks through each in generic terms.
- A cart-and-checkout service that reads product attributes from your buttons, as a Snipcart-style service does.
- A store platform's buy button that creates a checkout from product variants, as a Shopify Buy-button-style embed does.
- Hosted checkout sessions created by a small server function from the cart lines, as a Stripe Checkout-style service does.