Design Merchant Settlement and Reconciliation for Google Pay Card Payments
Last updated: November 29, 2026
Quick Overview
Design the system that settles card payments collected by Google Pay for merchants each day, matches them against acquirer and card network reports, and flags discrepancies before payouts go out.
0
0
0 solved
Design the system that settles card payments collected by Google Pay for merchants each day, matches them against acquirer and card network reports, and flags discrepancies before payouts go out.
A Google payments onsite question emphasizing batch correctness over real-time scale. The interviewer checks matching logic between internal records and external files, handling of fees, refunds, and chargebacks, and holding payouts when numbers do not reconcile.
What the Interviewer Expects
- Ingest external settlement files with validation and versioning
- Match transactions by keys with tolerance for timing and fee differences
- Classify unmatched items into actionable exception types
- Compute net settlement per merchant including fees, refunds, and chargebacks
- Gate payouts on successful reconciliation
- Keep a full audit trail
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you match when the acquirer batches several transactions into one line?
- What if a settlement file arrives late or is corrected the next day?
- How do you handle a transaction authorized on day 1 and captured on day 3?
- Which discrepancies should block a merchant's payout?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
- Inputs: internal captured transactions and refunds from the ledger; daily settlement files from acquirers and card networks; bank statements showing funds received.
- Output: per-merchant net payabl...
High-Level Design
- File ingestion: fetch files over secure channels, validate checksums and schemas, store raw versions immutably, parse into normalized rows.
- Matching engine (Dataflow or BigQuery batch): ...