PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/OpenAI

Design a payment system

Last updated: Apr 20, 2026

Quick Overview

This question evaluates a candidate's competency in designing secure, reliable payment architectures, covering API design, transaction lifecycle management (authorization, capture, refund), idempotency, internal ledgers, webhook integrations, and reconciliation with external processors.

  • medium
  • OpenAI
  • System Design
  • Software Engineer

Design a payment system

Company: OpenAI

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Design a payment system for an online commerce platform. The system should support: - Creating a payment order for a purchase - Authorizing and capturing card or wallet payments - Idempotent retries from clients - Payment status tracking such as `pending`, `authorized`, `captured`, `failed`, and `refunded` - Full and partial refunds - An internal ledger for financial correctness - Webhooks or callbacks to merchants when status changes - Reconciliation with external payment processors Explain the API design, core services, data model, end-to-end payment flow, failure handling, consistency guarantees, security considerations, and how the system scales reliably.

Quick Answer: This question evaluates a candidate's competency in designing secure, reliable payment architectures, covering API design, transaction lifecycle management (authorization, capture, refund), idempotency, internal ledgers, webhook integrations, and reconciliation with external processors.

Related Interview Questions

  • Design Video Generation Orchestration - OpenAI (medium)
  • Design CI/CD Build Caching - OpenAI
  • Design an Instagram-like Feed System - OpenAI (medium)
  • Design Online Chess Matchmaking - OpenAI (hard)
  • Design Android MVVM API Architecture - OpenAI (medium)
OpenAI logo
OpenAI
Jan 9, 2026, 12:00 AM
Software Engineer
Onsite
System Design
7
0
Loading...

Design a payment system for an online commerce platform.

The system should support:

  • Creating a payment order for a purchase
  • Authorizing and capturing card or wallet payments
  • Idempotent retries from clients
  • Payment status tracking such as pending , authorized , captured , failed , and refunded
  • Full and partial refunds
  • An internal ledger for financial correctness
  • Webhooks or callbacks to merchants when status changes
  • Reconciliation with external payment processors

Explain the API design, core services, data model, end-to-end payment flow, failure handling, consistency guarantees, security considerations, and how the system scales reliably.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More OpenAI•More Software Engineer•OpenAI Software Engineer•OpenAI System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.