ce-cart-checkout
LLM Docs Header: All requests to
https://llm-docs.commercengine.iomust include theAccept: text/markdownheader (or append.mdto the URL path). Without it, responses return HTML instead of parseable markdown.
Cart, Checkout & Payments
Prerequisite: SDK initialized. Public catalog reads can use
public(), but cart and checkout flows must use the session client. Seesetup/.
Decision Tree
User Request: "Add cart" / "Checkout" / "Payments"
│
├─ Checkout approach?
│ │
│ ├─ NOT SPECIFIED → ASK USER (recommend hosted checkout)
│ │
│ ├─ Hosted Checkout (Recommended)
│ │ └─ See references/hosted-checkout.md
│ │ └─ Install @commercengine/checkout
│ │ └─ initCheckout() + framework binding (or Astro / vanilla layout script)
More from commercengine/skills
ce-orders
Commerce Engine order management - create orders, list/detail, shipment tracking, payment status, cancellation, and refunds.
48ce-catalog
Commerce Engine product catalog - products, variants, SKUs, categories, faceted search, reviews, and recommendations.
31ce-setup
Set up the Commerce Engine TypeScript SDK in any project. Framework detection, public vs session client selection, token storage choices, environment variables, and migration guidance.
27ce-auth
Commerce Engine authentication and user management. Anonymous sessions, OTP login, password auth, token refresh, profile management, and account flows.
27ce
Commerce Engine router. Use when the user asks about building a storefront, setting up the SDK, auth, products, cart, checkout, orders, webhooks, SSR, Next.js, or TanStack Start e-commerce patterns.
27ce-webhooks
Commerce Engine webhook events and syncing. 14 event types for orders, payments, refunds, and shipments. Signature verification and async processing patterns.
21