Question bank

No. 32 · Payments & ledgers

Design a card payment processing API

Expert50 minAPI design · Idempotency · Security · Transactions · Consistency models · Message queues · Batch processing

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Walkthrough 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.

  1. Designing a Payment System

    The Pragmatic Engineer · Gergely Orosz (chapter by Alex Xu)ArticleFull walkthroughFreeVetted

    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

  2. Module 2: How Card Payments Work

    Global Payments Developer PortalDocsBackgroundFreeVetted

    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

  3. Place a hold on a payment method (separate authorization and capture)

    Stripe DocsDocsBackgroundFreeVetted

    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

  4. Designing robust and predictable APIs with idempotency

    Stripe Blog · Brandur LeachEngineering blogBackgroundFreeVetted

    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

  5. Avoiding Double Payments in a Distributed Payments System

    Airbnb Engineering (Medium)Engineering blogPartialFreeVetted

    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)

  6. System Design Interview: Designing Payment Systems; Follow-up Questions and Probable Issues

    HackerNoon · Georgii KliukovkinArticlePartialFreeVetted

    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

  7. Design a Payment System - System Design Interview

    Code with Lucian (YouTube)VideoFull walkthroughFreeVetted

    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

Catalog tags (unverified)

StripePaytmDatabricks

Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.

Report or add attribution evidence · How we label evidence

KEEP GOING

From our Learn guides

Related questions