← Questions

Make a charge-then-record payment flow safe against crashes and retries

0
MercorCodingLast asked Oct 2026

A coding interview question asked in Mercor's technical phone screen, last asked Oct 2026. It tests payments, idempotency and retries.

A backend first charges a customer through an external payment provider and then writes the payment to its own database. You are shown code like this (in Java or Python) and asked what goes wrong when the process crashes, the client…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

payments · idempotency · retries · code review

Your code and the AI tutor open when you unlock this question.