System Design Payment System: Interview Talk Track

System Design Payment System: Interview Talk Track

"Design a payment system" is a favorite system design prompt because it forces you to think about correctness first. In many designs, losing an occasional update is acceptable. With money, charging a customer twice or losing a payment is not. Interviewers want to see that you understand idempotency, ledgers, external providers, and what happens when things fail halfway.

This system design payment system interview talk track gives you a structure for a 45-minute round. Adjust depth to your level and to where the interviewer steers.

1. Clarify requirements (about 5 minutes)

Functional requirements:

Non-functional requirements:

State the scope: "I'll focus on the pay-in flow with an external payment provider, the ledger, and reconciliation. Payouts I'll cover briefly."

2. High-level design (about 10 minutes)

Components:

Flow for a payment:

  1. Checkout calls the payment service with an order ID, amount, currency, and an idempotency key.
  2. Payment service creates a payment record in PENDING state.
  3. It calls the PSP. The customer may be redirected for card authentication.
  4. The PSP responds or sends a webhook with the result.
  5. Payment service updates the record to SUCCEEDED or FAILED.
  6. On success, the ledger records entries, and an event goes to the queue for order fulfillment and notifications.

3. Idempotency (the most important part)

Networks fail. Clients retry. Webhooks arrive twice. Without protection, a retry can charge twice.

Say it plainly: "Every step that moves money must be safe to retry."

4. Ledger and data model (about 8 minutes)

Use double-entry bookkeeping: every transaction creates at least two entries that sum to zero.

entry_idtxn_idaccountamountcurrencycreated_at
1t1customer_payable-100.00USD...
2t1merchant_balance+100.00USD...

Key points:

5. Consistency and failure handling (about 10 minutes)

Walk through the tricky cases:

Reconciliation: every day, compare our ledger and payment records with the provider's settlement files. Mismatches go to an alert queue for investigation. This is the safety net that catches anything the online flow missed.

6. Scaling (about 5 minutes)

7. Refunds and payouts (briefly)

8. Wrap up

Summarize: "The core ideas are idempotency at every money-moving step, an append-only double-entry ledger, a state machine for payments, the outbox pattern for reliable events, and daily reconciliation as a safety net." Then offer deeper topics: fraud checks, multi-currency, or regional compliance.

Common mistakes

Practice the talk track

Payment design questions reward calm, structured reasoning about failure. Luna Interview helps you rehearse system design talk tracks out loud with a timer, so you can walk through tricky failure cases clearly in the real round.

Run this structure end to end two or three times, and the important parts will come out naturally.