Payments platform: move money exactly once.
Networks drop, apps retry and webhooks arrive twice. This topic builds a checkout payment system that charges each customer exactly once and can prove it to an auditor: idempotency, tokens, ledgers, outbox, webhooks and daily reconciliation.
- Every figure sourced and dated
- PCI DSS v4.0.1 and RBI rules
- Same 2D and 3D diagram engine
The system you’ll build
Checkout payments · 9 components
Why this topic exists
At payment scale, the rare case happens every few seconds.
- 25.47 bn
UPI transactions in October 2026, worth ₹31.53 lakh crore, or about 822 million a day.
NPCI · UPI statistics · read 18 Nov 2026
- 24 h
Stripe keeps an idempotency key’s first result, 500 errors included, and lets it be removed once at least 24 hours old.
Stripe · idempotent requests · read 18 Nov 2026
- 3 days
How long Stripe keeps retrying a failed webhook in live mode, with no promise about event order.
Stripe · webhooks · read 18 Nov 2026
- v4.0.1
The only active version of PCI DSS. Its future-dated requirements became mandatory on 31 March 2025.
PCI SSC · PCI DSS v4.0.1 · read 18 Nov 2026
Lessons
1 interactive · 7 coming
- 1Move money exactly onceThe whole system in ten steps: idempotency, risk, tokens, retries, ledger, outbox, webhooks, reconciliation.
- 2Idempotency in depthKey scope, storage, expiry, concurrent duplicates and what to do when a key is reused with a different body.
- 3Designing the ledgerAccounts, double-entry transactions, reversals, balances at a point in time, and multi-currency.
- 4Asynchronous outcomes and webhooksSignatures, replay windows, duplicates, ordering, and polling as a backstop.
- 5Timeouts, retries and backoffUnknown outcomes, retry budgets, full jitter and circuit breakers in front of a PSP.
- 6PCI scope and tokenisationWhat lands in scope, vaults and network tokens, and RBI card-on-file rules in India.
- 7Reconciliation and breaksSettlement files, matching rules, break queues, ageing and the match-rate metric.
- 8Interview: a marketplace payments platformA full mock interview with split payouts, refunds and chargebacks, scored on the same rubric.
Current with
Every fact in this topic, with its source and date
- Stripe · idempotent requestsFor API v1, Stripe saves the status code and body of the first request made with an idempotency key once endpoint execution begins, and retries with the same key return that saved response, including 500 errors.read 18 Nov 2026
- IETF · Idempotency-Key header draftThe current version of the IETF Idempotency-Key HTTP header draft is draft-ietf-httpapi-idempotency-key-header-08, dated 22 October 2026.read 18 Nov 2026
- Stripe · webhooksIn live mode Stripe attempts to deliver an event for up to three days with exponential backoff.read 18 Nov 2026
- PCI SSC · PCI DSS v4.0.1PCI DSS v4.0 was retired on 31 December 2024, after which v4.0.1 is the only active version of the standard supported by PCI SSC.read 18 Nov 2026
- PCI SSC · future-dated requirements51 of the 64 new PCI DSS v4.x requirements were future-dated and became effective on 31 March 2025.read 18 Nov 2026
- PCI SSC · request for commentsPCI SSC ran a request-for-comments period on PCI DSS v4.0.1 from 3 June to 20 July 2026 to decide whether and how to revise the standard.read 18 Nov 2026
- RBI · card-on-file circularFrom 1 October 2022 no entity in the card payment chain other than card issuers and card networks may store actual card data (Card-on-File), and previously stored data must be purged.read 18 Nov 2026
- AWS · Exponential backoff and jitterMarc Brooker's AWS Architecture Blog post on exponential backoff and jitter was published on 4 March 2015.read 18 Nov 2026
- microservices.io · transactional outboxIn the transactional outbox pattern the service stores the outgoing message in an outbox table as part of the same database transaction that updates the business entities.read 18 Nov 2026
- NPCI · UPI statisticsNPCI reports 25,466.70 million UPI transactions in October 2026.read 18 Nov 2026