System Design Problem

Design a Payment Gateway (Handling ACID Transactions)

Commonly Asked By:StripePayPalSquareAdyenApple

  • Process payments: Accept payments via credit/debit cards, bank transfers, digital wallets (PayPal, Apple Pay, Google Pay)
  • Authorize & Capture: Two-phase payment: authorize (hold funds) → capture (charge): or single-step direct charge
  • Refunds: Full and partial refunds
  • Recurring payments: Subscriptions, auto-debit
  • Multi-currency: Accept and settle in multiple currencies
  • Tokenization: Store card details securely as tokens (PCI DSS compliance)
  • Webhooks: Notify merchants of payment status changes asynchronously
  • Retry failed payments: Automatic retry for transient failures
  • Ledger: Double-entry bookkeeping for every transaction
  • Merchant dashboard: View transactions, settlements, chargebacks, analytics
Loading...