Moving money correctly: idempotency, ledgers, payment state machines, and reconciliation.
What a Payment Actually Is — A succeeded PaymentIntent is the issuer's promise to pay in a day or two; five parties that will never share a transaction manager make and keep that promise. (12 min read)
Idempotency: The Contract — Idempotency keys are scoped per API key, a changed body on retry is an error rather than a replay, and a key regenerated on retry is no key at all. (11 min read)
Idempotency: The Machinery — The key's row is written first in its own transaction and doubles as a lock, so a concurrent duplicate gets a conflict instead of a second charge; recovery points finish the rest. (13 min read)
The PaymentIntent State Machine — Replacing the charge verb with a durable PaymentIntent noun is what made multi-round-trip, user-interactive, multi-day payments expressible. (11 min read)
Authorize vs Capture — An authorization reserves the cardholder's balance and moves no money; capture is the irreversible step, and splitting the two postpones it as long as possible. (11 min read)
The Card Network: Authorization, Clearing, Settlement — The card network is a forty-year-old message protocol with three phases, and it solved the lost-response problem with reversal messages, not a distributed transaction. (11 min read)
Sagas and Compensating Transactions — Two-phase commit is impossible when a card network will never vote; a saga is forward-only local steps plus compensations, which are new transactions, not undos. (10 min read)
Radar: Fraud Scoring Inside the Authorization Path — Radar scores every payment in front of the network authorization call under a sub-100 ms budget, which dictates its architecture, outage behavior and review flow. (14 min read)
Webhooks: At-Least-Once Delivery — The events that matter most arrive when no request is outstanding; delivery is unordered and retried, so the only safe consumer is idempotent and re-reads state. (12 min read)
Rate Limiters and Load Shedding — Stripe runs four limiters (request rate, concurrency, fleet usage and worker utilization shedding), each catching a failure the others cannot. (16 min read)
What Generalizes — The principles carry to any API that coordinates an irreversible action across parties that will never share a transaction manager. (6 min read)
Synthesis and Self-Test — Every part is one decision at a different layer: make the retry safe and postpone what cannot be undone. Then questions that each need two or more parts. (16 min read)