TalkAm is a voice-banking assistant I built on WhatsApp. A user sends a voice note in Pidgin, Yoruba or Hausa, something like "send 5,000 to my brother", and a Laravel core reads the transfer back, checks a PIN or a face, and moves the money.
The last thing every completed transfer produces is a receipt. It sounds like the easy part: the hard decisions are behind you, so print the amount and the balance and send it. In practice the receipt is where a few quiet bugs live. It can state a balance that isn't true. It can tell someone their money moved twice. And because it runs after the money has moved, a crash inside it can make a queue retry run work that's already finished.
A receipt has to answer two questions: did it work, and what do I have now.…