Payment / Coffee-Shop Ordering (read the prompt!)

Medium · System Design · 60 min

Design a coffee-shop ordering and payment backend with pre-authorization holds, final-amount capture, and nightly PSP batch settlement and reconciliation, and implement an idempotent payment state machine.

This is a Pro problem. Pro unlocks the full prompt, a step-by-step walkthrough, a reference solution and tests you can run.

See Pro plans

More OpenAI problems