payment gateway
An external service that processes card payments on a merchant's behalf.
In more detail
It sits outside your transaction and trust boundary, and calls to it can be slow, retried or doubled. Pass it an idempotency key and reconcile its final status.
Related terms
- idempotency key — A unique value a client sends with a non-idempotent request, such as a create, so the server can recognise a retry and return the original result instead of acting twice.
- trust boundary — A line in a system where data passes between parts that trust each other differently, such as from the internet into your service or from your service to a vendor.
- reconciliation — Comparing copies of data with the source of truth and correcting any that have drifted.
Taught in
- Worked Design One: Ticket Booking, Correctness First — Scalable System Design & Distributed Architecture