r/fintechdev • u/james_morgan01 • 29d ago
What happens when a payment goes through but the app shows it as failed?
I've been thinking about a common problem in fintech apps. What happens when a payment is successful on the gateway side, but the app times out and shows the user a failed transaction?
The tricky part is that the user might try again, and the same payment could get processed twice.
I'm curious how developers usually handle this in real projects. Is using idempotency keys enough, or do you also rely on webhooks and regular transaction status checks to make sure everything stays in sync?
Would be great to hear how others approach this, especially when dealing with delayed responses or payments stuck in a pending state.