Whenever you're ready, walk me through how you'd approach this.
Design an e-commerce payment system.
Discuss the APIs, data model, payment-provider integration, idempotency, authorization, refunds, webhooks, consistency, availability, security, and operational behavior at scale. Explain how the system handles retries, duplicate requests, provider timeouts, partial failures, and regional outages.