0 day streak
Anonymous · shared experience20 Apr 2026 · 4 views

Affirm: Payment processing for installment loans with a one-hour bank window

Interview question #Affirm System design

Problem. Design a system that collects payments on installment loans. Assume the user and an active loan exist; user and loan APIs can be stubbed.

Requirements.

  • Accept payments started by users from the app or website, and payments triggered by a schedule.
  • Debit money through a bank API that is synchronous and only available for one hour each day.
  • Tell the user the outcome by SMS or email.

What to think about. Queuing payment requests outside the bank window and draining them within it, rate and capacity limits inside that hour, idempotency so a payment is never taken twice, retries and failure states, and keeping the loan balance consistent with the payment record.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.