PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/OpenAI

Design a payment processing system

Last updated: Mar 29, 2026

Quick Overview

This question evaluates system-design competency in building reliable payment workflows, covering distributed transaction handling, idempotent APIs, asynchronous external integrations, and accounting/ledger correctness.

  • hard
  • OpenAI
  • System Design
  • Software Engineer

Design a payment processing system

Company: OpenAI

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

## Scenario Design a backend payment system for an online product that supports: - One-time charges and refunds. - Idempotent payment APIs (clients may retry). - Asynchronous interaction with external payment processors (e.g., card networks via a payment gateway). - Accurate accounting/ledger and reporting. ## What to cover - Core APIs and data model. - Handling retries, duplicates, and failures. - Ensuring correctness (no double charge; consistent ledger). - Observability and reconciliation. You can make reasonable assumptions and state them explicitly.

Quick Answer: This question evaluates system-design competency in building reliable payment workflows, covering distributed transaction handling, idempotent APIs, asynchronous external integrations, and accounting/ledger correctness.

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
Dec 15, 2025, 12:00 AM
Software Engineer
Onsite
System Design
30
0
Loading...

Scenario

Design a backend payment system for an online product that supports:

  • One-time charges and refunds.
  • Idempotent payment APIs (clients may retry).
  • Asynchronous interaction with external payment processors (e.g., card networks via a payment gateway).
  • Accurate accounting/ledger and reporting.

What to cover

  • Core APIs and data model.
  • Handling retries, duplicates, and failures.
  • Ensuring correctness (no double charge; consistent ledger).
  • Observability and reconciliation.

You can make reasonable assumptions and state them explicitly.

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.