UPI is the most widely used digital payment method in India, for everything from small purchases to large bills. In a mobile app, a smooth UPI checkout can be the difference between a completed order and an abandoned cart. Most businesses integrate UPI through a payment gateway or aggregator rather than directly.
How a UPI payment flows
- The app asks your server to create an order, and the server creates a payment request with the gateway
- The customer picks a UPI app on their phone, or enters a UPI ID or scans a QR code
- The customer approves the payment with their UPI PIN in their UPI app
- Your server receives confirmation from the gateway, and only then marks the order as paid
Confirm on the server
Never treat a success screen in the app as proof of payment. People close the UPI app midway, networks drop and responses arrive late. Your server should verify each payment with the gateway, through signed webhooks and status checks, and handle pending payments that complete minutes later.
Details that matter
Show the UPI apps installed on the phone, handle customers returning to your app without finishing the payment, and make retries idempotent so nobody is ever charged twice. Reconcile payments against the gateway’s settlement reports every day.
Security and compliance
Work with a payment aggregator authorised by the Reserve Bank of India, keep gateway keys on your server and never in the app, and log payment events without storing sensitive payment details.
Our engineers and consultants write about what they see in real projects. Have a question about your own systems?






