📚 Encyclopedia

Business · updated 2026-10-26

Planning a card payment processing system

paymentscredit-cardspci-dsspsppayfacledgeridempotencyfraudfintech

"Build a credit card processing system" can mean three very different businesses, and the choice sets the timeline, the regulatory load and the architecture. This is the shape of the answer worked out for a system serving 2 million users: the decision first, then the parts of the design that prevent the classic money-losing bugs. The figures are planning estimates, not quotes.

First decision: merchant, PayFac or processor

Option What you build Time to live Regulatory load
A. Merchant on a PSP (Stripe, Adyen, Braintree) Checkout, orders, ledger, webhooks 1 to 3 months PCI SAQ A (minimal)
B. Payment facilitator on a sponsor processor Merchant onboarding, sub-merchant ledger, payouts, risk 9 to 18 months PCI DSS Level 1, KYC/AML, sponsor bank agreement
C. Processor/gateway with direct network links All of B plus ISO 8583 connectivity and card-brand certification 18 to 36 months, $5M to $20M+ Level 1, certification with each brand, bank sponsorship, money transmitter licenses

Start with A and keep the internal design (orchestrator, ledger, idempotency) ready to move to B.

Scale is not the hard part

2M users at ~5 transactions a month is ~10M a month: about 4 TPS on average and ~200 TPS at a 50x Black Friday peak. Design for 1,000 TPS and you still fit a well-run Postgres cluster plus stateless services. Correctness, security and compliance are much harder than throughput; do not build planet-scale sharding before the ledger is right.

Architecture in one picture

Rules that prevent money-losing bugs

Shrinking PCI scope

Fraud, reliability, money

Gotchas

See also

Linked from

Sources: tldr post #1811 (2026-10-19)