Software Engineer • Mid-Level
Software Engineer • Mid-Level
High QualityPractice Other Questions that Stripe Asked
Continue with targeted prep from Stripe's coding question bank and system design questions.
Interview Summary
The Stripe onsite consisted of four practical engineering rounds: payment/invoice reconciliation, debugging a real issue in the Python requests codebase, integrating GeoJSON ride data with a static-map API, and an AI-assisted programming exercise for a transaction rules engine.
Interview Details
Round 1 — Payment / Invoice Reconciliation
The first coding problem involved matching incoming payments to invoices. Each payment contained information such as:
- Payment ID
- Amount
- Memo
Each invoice contained:
- Invoice ID
- Amount
- Due date
The exercise was divided into multiple progressive parts.
Part 1 — Match Invoice ID from Payment Memo
The initial version required parsing the payment memo and extracting an invoice ID. If that ID corresponded to an existing invoice, the payment should be matched to that invoice and returned using the required output format. The focus was basic parsing and reconciliation.
Part 2 — Exact Amount Matching
The next part added a second matching strategy. If the payment could not be matched through its memo, the system should look for an invoice whose amount exactly matched the payment amount. If several invoices had the same amount, choose the one with the earliest due date. An important requirement was that the Part 1 behavior still had to work after adding Part 2.
Part 3 — Forgiveness / Amount Tolerance
The final extension introduced a configurable forgiveness range. A payment could now match an invoice whose amount was sufficiently close to the payment amount. If several invoices fell inside the allowed range, again choose the invoice with the earliest due date. The interviewer then asked about priority when both an exact amount match and a forgiveness-range match exist. The round repeatedly emphasized testing and regression safety.
Follow-up questions included:
- Can you invoke the method with a concrete example?
- Can you test another boundary case?
- Are the original use cases still passing?
- What other edge cases can you think of?
- Is there any potential bug in the current implementation?
- If an exact match also satisfies the forgiveness rule, which one should take priority?
Round 2 — Bug Squash: Python Requests 307 Redirect
The second round involved debugging the Python requests codebase. The bug appeared when sending a POST request whose body was a seekable stream and the server returned an HTTP 307 Temporary Redirect. A 307 redirect should preserve:
- The HTTP method
- The request body
The provided tests covered three scenarios.
Case 1 — Normal String Body
A request body such as "test" worked correctly after the
Unlock Full Details
Create a free account to unlock this interview experience report.