Commerce Checkout
Run cart creation and checkout flows from start to finish.
How It Works
- •Create or locate a cart for a customer.
- •Add or update cart items.
- •Set shipping address, rates, and payment details.
- •Apply discounts and complete checkout.
Usage
- •CLI:
stateset-checkout ...orstateset "create cart for customer@example.com" - •Writes require
--apply. - •MCP tools:
create_cart,add_cart_item,update_cart_item,set_cart_shipping_address,set_cart_payment,apply_cart_discount,get_shipping_rates,complete_checkout.
Output
json
{"status":"completed","cart_id":"cart_123","order_number":"ORD-12345"}
Present Results to User
- •Cart and order identifiers.
- •Totals (subtotal, tax, shipping, discounts).
- •Any missing fields needed to finalize checkout.
Troubleshooting
- •Missing shipping/payment: collect required fields before completing.
- •Coupon rejected: validate promotion rules and dates.
References
- •references/checkout-flow.md
- •/home/dom/stateset-icommerce/cli/.claude/skills/commerce-checkout/SKILL.md
- •/home/dom/stateset-icommerce/examples/workflows.md