Payments repository overview
The payments package owns capture, webhook normalization, and ledger writes. It sits between product clients and external payment processors, with the event bus carrying durable updates to downstream services.
System architecture
The payments service exposes capture and webhook handlers at one boundary. Client applications use the service, while provider callbacks return through the same normalized path.
Payment boundaries
The event ID is retained before payment and ledger writes complete, making a repeated provider delivery safe to recognize and ignore.
Core glossary
Normalized payment events are persisted in the ledger and made available to downstream consumers through the event bus.
Relevant source filespackages/payments/README.md · lines 1–18
packages/payments/src/webhooks.tspackages/payments/src/ledger.tspackages/payments/README.md