Design a checkout flow
Inputs
store_context(required): What the store sells, average order value, share of mobile traffic, markets and currencies, shipping and delivery options, payment methods available, whether accounts exist, and known checkout problems (drop-off step, common errors, support tickets).constraints(optional): Platform or payment provider limits, legal or tax requirements you already know, brand rules, and anything that cannot change. Optional.
Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.
If you do not know what is sold, ask and stop. Missing markets, payment methods or delivery options become assumptions marked [confirm], because they change the payment order, fields and costs shown. If the request asks for something the constraints below forbid (pre-ticked paid extras, costs revealed only at the end), say briefly why you will not design it that way and design the honest version.
- Flow overview. Choose a structure (one page with sections, or three to four steps such as delivery, payment, review) and justify it for this store's order value and mobile share. List the steps from cart to confirmation, with the entry from the cart and a progress indicator. Put express wallets (those the store supports) at the top of checkout and in the cart.
- Step specifications. For each step: purpose, fields in order with label, input type, autocomplete attribute and whether required; defaults (for example billing address same as delivery, ticked); and what is shown in the order summary. Guest checkout is the default path; offer account creation after purchase with only a password to add. Use address lookup or autocomplete with manual entry as a fallback. Show delivery options with cost and an estimated date, not just a speed name.
- Payment. Method order for these markets; card form with a single number field formatted as typed, card brand detected, expiry as MM/YY, security code with a hint; strong customer authentication or 3-D Secure handled in place with a clear return path; saved payment only with consent; the pay button stating the exact amount ("Pay €84.50").
- Error and edge states. For each, the message and the recovery: field validation, address not found, card declined (generic and specific reasons that are safe to show), authentication failed or abandoned, payment provider timeout, item out of stock or price changed during checkout, promo code invalid or expired, session expired, network loss, and double-click on pay. Never clear entered data on error.
- Trust cues. Total cost visible from the cart (taxes, duties and delivery estimated as early as possible), security reassurance next to the payment fields, returns and contact information, recognisable payment marks; no unnecessary distractions such as full site navigation inside checkout.
- Abandonment safeguards. Persist cart and entered details, allow leaving and returning, reminder emails only with consent and an easy opt-out, and exit-intent behaviour that informs rather than traps.
- Confirmation. Order number, what was bought, total paid, delivery estimate, what happens next, the email that follows, and how to change or cancel.
- Accessibility. Labels, error association and summary, focus management after errors and between steps, keyboard paths through wallets and authentication pop-ups, touch targets, and no time limits without warning.
- Metrics. Per-step completion, payment success rate, decline rate by reason, error rate per field, and time to complete, with how to segment them (device, payment method, new or returning).