---
title: "Comment by Azhar Abbas on \"Four payment rails that decide your app's architecture before you write a line\" | Hashnode"
description: "The point about treating a UPI payment as an intent that needs server-side reconciliation is spot on. A client-side success screen proves nothing when users bou"
url: "https://hashnode.com/posts/four-payment-rails-that-decide-your-app-s-architecture-before-you-write-a-line/6afb45321709019f2ae44f62/comment/6afdad16723ef7baefe018f2"
---

[Discussion](https://hashnode.com/posts/four-payment-rails-that-decide-your-app-s-architecture-before-you-write-a-line/6afb45321709019f2ae44f62)

Comment [Four payment rails that decide your app's architecture before you write a line](https://hashnode.com/posts/four-payment-rails-that-decide-your-app-s-architecture-before-you-write-a-line/6afb45321709019f2ae44f62)

[Azhar Abbas](https://hashnode.com/@azharabbas)

[Nov 18](https://hashnode.com/posts/four-payment-rails-that-decide-your-app-s-architecture-before-you-write-a-line/6afb45321709019f2ae44f62/comment/6afdad16723ef7baefe018f2)

The point about treating a UPI payment as an intent that needs server-side reconciliation is spot on. A client-side success screen proves nothing when users bounce between apps.

[Youngjun Yoon](https://hashnode.com/@cpcai)

[Nov 19](https://hashnode.com/posts/four-payment-rails-that-decide-your-app-s-architecture-before-you-write-a-line/6afb45321709019f2ae44f62/comment/6afdad16723ef7baefe018f2#reply-6afeccf45f802c3af5ac77e5)

Exactly, and the failure is usually silent. What I do now is keep the order row on an explicit state machine (created, pending, paid, expired) with a signature-verified server webhook, an idempotency key on every retry, and a nightly reconciliation job that pulls the PSP statement and closes anything still stuck in pending. The nightly job is the part that catches payments where the callback never arrives at all, which is the case people forget until it costs them a day of revenue. Thanks for reading.
