No. 32 · Payments & ledgers
Design a card payment processing API
OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES
Further reading
At least one vetted end-to-end walkthrough or mock interview is linked. Links go to other sites; we credit and describe them rather than copy them.
- Designing a Payment System
Free full chapter covering pay-in flow through a PSP, the ledger, wallet, reconciliation, retries and idempotency. Written from the merchant side; card network and issuer internals are out of scope.
Link checked 2026-12-06
- Module 2: How Card Payments Work
Plain explanation of authorization versus settlement and who the issuer, acquirer and network are, which you need before drawing a card flow. Concept primer only.
Link checked 2026-12-06
- Place a hold on a payment method (separate authorization and capture)
Concrete semantics of a hold: authorize now, capture later, and what happens when the authorization expires. Stripe-specific API, but the lifecycle generalises.
Link checked 2026-12-06
- Designing robust and predictable APIs with idempotency
Why every mutating payment call needs an idempotency key and how clients should retry with backoff. Short and conceptual; storage details are elsewhere.
Link checked 2026-12-06
- Avoiding Double Payments in a Distributed Payments System
Real account of how Airbnb made payment calls idempotent across services, including pre-RPC, RPC and post-RPC phases. Focused on that one problem, not the whole system.
Link checked 2026-12-06 (the site blocks automated checks; confirmed manually)
- System Design Interview: Designing Payment Systems; Follow-up Questions and Probable Issues
Walks a naive PSP integration through its failure cases (double submit, card data handling, reliability) as likely follow-up questions. Partial; skips data model and scale.
Link checked 2026-12-06
- Design a Payment System - System Design Interview
Video version of the classic payment system design: gateway, PSP, retries, Kafka and reconciliation. Largely tracks the book chapter above, so pick one.
Link checked 2026-12-06
Report a bad or misleading link
Reference audit: 3 of 3 links from the audited catalog kept
Every recommended link was kept.
We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.
COMPANY EVIDENCE · NOT A FREQUENCY CLAIM
Where it has been reported
Candidate reports
- Candidate report PayPal
- SE 3 (Bangalore): third round, also the hiring manager round, asked to design a payment processing system other clients such as Amazon could use. · posted 2022-07-29 · checked 2026-12-06
- Candidate report Capital One
- Senior SDE Power Day: the system design round was "design payment system", linked by the author to a credit card payments portal prompt. · posted 2024-05-20 · checked 2026-12-06
Catalog tags (unverified)
StripePaytmDatabricks
Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.
KEEP GOING