Interview practice question
Payment gateway times out
System Design · Design: Commerce and Media · Experienced
Your payment service calls a gateway to charge a card and gets a timeout. What should the system do, and how should it be designed for this case?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Outcome unknown; don't blindly retry with new key.
- Mark payment "pending/unknown".
- Query gateway status by idempotency key.
- Retry with same key if supported.
- Webhooks and reconciliation resolve.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.