The system design question asked me to design a simplified payment processor that sits between merchants and upstream payment networks.
The system had two main flows. Hold requests needed to be forwarded synchronously to the appropriate payment network for approval or denial, while approved charge requests were collected and later sent to upstream processors as scheduled batch files for settlement.
Interview Details
System Design — Payment Processor
A merchant sends payment requests to our payment processor, and our service communicates with the appropriate upstream payment network. The system needs to support two primary operations: Hold and Charge.
Part 1 — Hold Request
A merchant sends a hold request containing information such as:
account number
amount
account number
amount
The payment processor forwards the request to the appropriate payment network. The upstream processor then decides whether to approve or reject the hold. If approved, the requested funds or credit are temporarily reserved for a short period. The response is returned through our payment processor back to the merchant.
The flow is conceptually:
Merchant
↓ hold request
Payment Processor
↓ hold
Merchant
↓ hold request
Payment Processor
↓ hold
Unlock Full Details
Create a free account to unlock this interview experience report.