Menu

Transaction Receipts in Laravel: Why TalkAm Never Re-Asks the Bank for the Balance
📰

Transaction Receipts in Laravel: Why TalkAm Never Re-Asks the Bank for the Balance

DEV Community: laravel·Abdulahmed Abdulhakeem·about 9 hours ago
#nDjEUx71
#devtolaravel#devto#dev#receipt#transaction
Long article (1492 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.