The key idea
A purchase is a server-authorized workflow. A responsive cart can be optimistic, but totals, payment outcomes, and orders must be reconciled against authoritative state.
Question & requirements
Design the frontend for shopping from cart to confirmed order. People can add and edit items as guests, sign in without losing their cart, choose an address and delivery option, review final totals, and complete payment. This question focuses on transaction correctness; Ecommerce covers storefront discovery and product details. Explain state transitions and recovery, not a payment processor’s internal ledger.
| Clarify | Assumption for this answer |
|---|