This design is close. You can start building tomorrow, but first add four short decisions to the doc. Two of them affect correctness: as written, the stock count can end up wrong.

**What's already good:** reserving stock and creating the order in one transaction, calling the payment provider outside any transaction, using the order id as the provider's idempotency key, and keeping an order `PENDING` when the payment result is unknown (backed by a reconciliation job and an alert). Most checkout designs get at least one of those wrong, and this one gets all of them right. The size is right for 200 to 2,000 orders a day, and the module and test structure is sensible.

## Fix before building

**1. Order status changes need a guard, or stock gets restored twice.** Both instances run the reconciliation job every 5 minutes. Suppose order X (2 units of SKU A) was declined. Both jobs read X as `PENDING`, and both run "mark `FAILED` and restore stock". Stock for A goes up by 4 instead of 2, so you sell stock you don't have. The same overlap can happen between a slow request and the job.
*Fix:* make every status change conditional: `UPDATE orders SET status = :new WHERE id = :id AND status = 'PENDING'`. Restore stock only if that update changed exactly one row. Steps 4, 5 and 6 should all go through the one guarded function.

```mermaid
stateDiagram-v2
    [*] --> PENDING: POST /orders (stock reserved)
    PENDING --> PAID: charge succeeded (only if still PENDING)
    PENDING --> FAILED: declined or no charge found (only if still PENDING; restore stock once)
    PAID --> [*]
    FAILED --> [*]
```

**2. Lock stock rows in a fixed order.** Cart 1 holds SKUs A, B and cart 2 holds B, A, at the same moment. Each transaction locks one row and waits for the other. Postgres kills one of them as a deadlock, and that customer gets a 500 even though stock was available.
*Fix:* sort the cart by SKU, and merge duplicate SKU lines, before running the `UPDATE`s.

**3. Decide what reconciliation does when the provider has no record of the charge.** If the first charge request never reached the provider, a status check returns "not found" forever. The order stays `PENDING`, its stock stays reserved, and the 30-minute alert fires with no defined way to resolve it.
*Suggested rule:* the job calls charge again with the same order-id idempotency key. This is safe because the provider treats it as the same charge, and it always returns a definite answer. Then the job settles the order from that answer.

**4. Say how a client that got `202` learns the outcome.** The doc doesn't say. Add `GET /orders/{id}`, or state explicitly that clients re-send the same `POST` to poll.

## Add to the test list
- Reconciliation: unknown becomes `PAID`, unknown becomes `FAILED` (stock restored), and provider has no record.
- Two reconciliation runs settling the same order at once: stock is restored exactly once.
- Two concurrent `POST`s with the same `Idempotency-Key`: the second gets the existing order, not a 500 from the unique-constraint violation.
- Two carts with the same SKUs in opposite order: both succeed, with no deadlock.

## Known tradeoffs, fine to accept but write them down
- **Email can be lost.** The order is marked `PAID` and committed before the email is queued. If the process crashes in between, that email is never sent. At this volume, writing it down is enough. The cleanup path is a transactional outbox: write the email job in the same transaction as the status change.
- **Request duration.** Worst case is about 4 × 5 s plus backoff, roughly 25–30 s. Check that the load balancer and client timeouts are longer than that.

All four fixes are a sentence or two each in the doc. Point 1 matters most, because it's the one that corrupts data.

VERDICT: READY WITH CHANGES
