Storefront overview
Storefront coordinates the order lifecycle across checkout, inventory, and payments. Each module owns its part of the transaction.
Relevant source files
shop/checkout.pyHow checkout works
Checkout reserves inventory, creates a charge with the order’s payment key, and records the order. The payment key stays the same when an attempt is retried.
Responsibilities
| Module | Owns |
|---|---|
| Checkout | Order coordination |
| Inventory | Availability and reservations |
| Payments | Charges and payment keys |