LeetDesign
← All problems
Medium

Design a Payment Ledger

Move money between accounts, with a card network authorization on every transaction.

Design the ledger at the heart of a payments product. Clients post transactions that debit one account and credit another, read balances before approving the next payment, and page through recent entries.

The card network authorizes each transaction, and the ledger records that authorization together with the entries it posts.