Design Problems/Payment System

Payment System

Hard
consistencyidempotencysagareconciliation

High-Level Architecture

Rendering diagram...

Design a payment processing system that handles charges, refunds, and payouts with strong consistency, idempotency, and support for multiple payment methods.