Whenever you're ready, walk me through how you'd approach this.
How would you design a payment service provider that merchants can integrate with to accept payments from their customers?
Cover merchant-facing APIs, payment authorization and capture, webhooks, idempotency, refunds, reconciliation, security, and operational failure handling. Explain consistency, availability, data storage, asynchronous processing, and how the design scales across regions and external payment schemes.