ScaleCrafts

Payments system design problems

3 problems where payments is a core concern. Draw the architecture, explain your choices, and see how an interviewer would score it.

3 problems
StatusProblemTopicsDifficultyBestLists
Design an e-commerce checkout

Let shoppers add items to a cart, check out and pay, while keeping stock counts right during big sales, like Amazon.

InventoryPaymentsConsistencyMedium
Scenario: a slow payment provider takes the site down

Checkout calls a third-party payment provider. During the evening peak its responses slow from 200 ms to 30 seconds. Requests pile up waiting on it, and within minutes even browsing and search stop responding. Redesign so one slow dependency can’t take the whole site down.

ScenarioResiliencePaymentsMedium
Design a payment system

Accept card payments for online merchants, move money correctly and never charge anyone twice, like Stripe.

PaymentsIdempotencyLedgerHard