**Short answer:** this is a strong design, and you can start tomorrow with a few small decisions made first. The hard parts are already right. I found one real bug and a few gaps, and each fix is small.

## What's working well
- **The charge call runs outside any transaction.** This is the most common mistake in checkout flows, and you avoided it.
- **The provider call is idempotent.** The order id is the provider's idempotency key, so retries can't double-charge.
- **Stock reservation is a single conditional `UPDATE`.** Two buyers can't take the last unit, and no locks are needed.
- **An unknown payment result has a defined path.** `PENDING`, a `202`, a reconciliation job and a 30-minute alert make a hard case explicit.
- **The module boundaries and test list fit the work.** The test list covers the nasty cases: timeout then success, all attempts timing out, and the last unit of stock.

## Fix before you build
**1. Two things can settle the same order at once, and stock gets restored twice.**
The request path and the reconciliation job can both finish the same `PENDING` order. The reconciler also runs on both instances.

Concrete case:
- The request's last retry times out and the client gets `202`.
- The provider declines the charge.
- The reconciler on instance A and the reconciler on instance B both read the order as `PENDING`, and both mark it `FAILED`.
- Each one restores the stock, so `available` rises by 2× the order's quantity. The extra units can be oversold later.

Fix: make every settle step a conditional update, `UPDATE orders SET status=… WHERE id=:id AND status='PENDING'`. Restore stock only if that update changed a row. Have the reconciler pick orders with `FOR UPDATE SKIP LOCKED`. Add one test: settle the same order twice and check that stock is restored once.

## Decide before you build
**2. What does the reconciler do when the provider says "no such charge"?**
If the service crashes after step 2 commits and before step 3 sends the charge, the order is `PENDING` and the provider has never heard of it. Step 6 only covers "paid" or "declined". I'd suggest this: retry the charge once, since the provider's idempotency makes that safe, and mark the order `FAILED` and restore stock if the provider still doesn't know it. Add a test for it.

**3. How long can the client wait on `POST /orders`?**
Four attempts at 5 s each, plus backoff, is roughly 25–30 s of waiting. Pick a total time budget, for example 10 s. When it runs out, return the `202`.

**4. Scope the idempotency key per customer.**
Make the unique constraint `(customer_id, idempotency_key)`, not the key alone. Otherwise one customer's key can return another customer's order. Also decide what happens when the same key arrives with a different cart. I'd return `422`.

## Smaller items, fine to do as you go
- **Lost emails:** a crash between the `PAID` commit and queueing the email loses the email. A small outbox table written in the same transaction fixes it. If you accept the loss for now, note it as known debt.
- **Deadlocks:** reserve stock in sorted `sku` order so two carts with overlapping items can't deadlock.
- **Keys and constraints:** add primary keys (`stock.sku`, `order_items (order_id, sku)`) and an index on `orders (status, created_at)` for the reconciler.
- **Prices:** say that `unit_price` and `total` are computed server-side, not taken from the cart.
- **Queue:** name the email queue technology, since the context section doesn't mention one.

At 2,000 orders a day with one Postgres database, nothing here needs more infrastructure. Items 1–4 are about a day of design decisions, not a redesign.

VERDICT: READY WITH CHANGES
