Payment Checkout & Ledger Service · View 07 of 24 · Structure
The critical design decision, drawn
- The only path from Authorization to Ledger is the durable event log. No layer above Coupling writes the books, and no layer below it is on the buyer's request (ADR-01).
- A diagram elsewhere in this set showing a money-operations service writing the ledger directly would contradict the architecture, not extend it.
Decisions
- Posting rules are versioned artefacts in the Ledger layer, not code scattered through services: the reason for an entry must be reconstructable in 2036 (ADR-02).
- Idempotency keys live at the Edge, where the merchant's key arrives, and are a different mechanism from the ledger's natural key (ADR-03).
Risks
- The event log is now a single structural dependency for durability. Its failure mode is drawn in view 24: authorization continues, the ledger lags, and nothing is reported as settled.