**You can start tomorrow, but fix the payment step (step 4) first.** The rest of the design is solid and sized well for 200 to 2,000 orders a day. The module boundaries, thin routes, a single `OrderCheckout` class, and structured logging with the order id are all sensible choices. Accepting the 5-minute inventory cache is also a reasonable call at this volume.

## Must fix before building: charge can double-bill or bill without an order

Steps 4 to 6 can charge a customer money with no order to show for it.

Here is a concrete case:
1. The charge request reaches the provider and succeeds, but the response is slow and takes more than 5 s.
2. We treat it as a timeout and retry.
3. Without an idempotency key, the provider charges the customer a second time.
4. If all 3 retries then fail on our side, step 6 rolls back the order. The customer has been charged, but there's no order row.

**Fix:**
- Generate one idempotency key per order, for example the order id, and send it on every charge attempt. Most providers, including Stripe and Adyen, dedupe on it.
- Commit the `PENDING` order before calling the provider, not after.
- If the outcome is unknown after the retries, leave the order `PENDING` and reconcile it by asking the provider for the charge status. Don't roll back.
- Add a test: the charge times out once and then succeeds, and the customer is charged exactly once.

## Should fix, but small

- **The transaction stays open during the payment call.** Step 3 opens it and step 5 commits it, so a worst-case payment of 3 × 5 s holds a database connection for 15 s or more. With one Postgres instance, a few slow payments in a row could exhaust the connection pool. Committing `PENDING` early, as above, solves this too.
- **`POST /orders` has no duplicate protection.** If the client retries after a network drop, it creates a second order. Accept a client-supplied `Idempotency-Key` header and store it with a unique constraint.
- **The stock check doesn't reserve stock.** With a 5-minute-old cache, two customers can buy the last unit. The design accepts stale reads, which is fine, but it should say what happens on oversell. For example, you could cancel and refund, or backorder. A one-line decision is enough.
- **Test plan.** Unit tests per module plus a happy-path integration test won't catch the problems above. Add integration tests for payment timeout, payment decline, and duplicate request.

## Minor

- Nightly backups mean up to a day of orders and payments could be lost in a failure. Confirm that the business accepts this, or add Postgres point-in-time recovery (WAL archiving), which is cheap to enable.
- Say what happens if the confirmation email fails after commit. A retry or a queue would work. It shouldn't affect the order status.

The payment fix is about half a day of design work, so it won't delay you much. Write the idempotency and `PENDING`-first flow into design.md and build to that version.

VERDICT: READY WITH CHANGES
