Whenever you're ready, walk me through how you'd approach this.
Design payment system
Clarify the scope, then design an end-to-end system that accepts payments, evaluates transaction risk, routes authorization requests, and handles success, failure, retries, refunds, and disputes. Treat the problem as an ML system design exercise: explain online and batch components, model serving, evaluation, monitoring, and failure recovery. State assumptions and discuss how the design changes with higher traffic, stricter latency, or stronger compliance requirements.