All problems
Advanced·💳 Fintech·Stripe · PayPal · Razorpay +1

Design
Payment Gateway (Stripe-like)

Design a payment gateway supporting card processing, refunds, fraud detection, and PCI-compliant tokenization at scale.

This is a Low-Level Design (LLD) problem. New to LLD vs HLD? Start here.

#Finance#Security#Distributed Systems
8F + 4NF requirements inside

01 -  Why interviewers ask this

Payment correctness under failure is the whole point — interviewers specifically test idempotency (never double-charge on a retried request) and rigorous state tracking.

02 -  Where this system exists in the real world

You interact with this design every day.

Stripe / Razorpay / PayPal payment gateways

E-commerce checkout payment processing

Subscription billing payment infrastructure

03 -  What you'll master

Solve this once. Know it forever.

01

Guarantee idempotent payment processing

02

Model a payment state machine with retries

03

Design secure, PCI-conscious data handling

04 -  What you'll design

8 functional · 4 non-functional requirements.

Accept card payments (credit, debit, prepaid)

7 more requirements inside

Sign in to unlock the full brief and start designing

05 -  Companies that ask this

You may face this exact question in your next interview.

S
Stripe
P
PayPal
R
Razorpay
V
Visa

Ready?

Open the canvas.
Design it yourself.

See all requirements, use staged hints, run your code, and compare with community discussions - all on the same canvas.