UPI is how most of India pays, so an app that cannot take UPI loses customers at checkout. The good news is that adding UPI to an Android or iOS app is a well-understood job. The hard part is choosing the right integration path and handling failures properly.
This guide explains the main ways to integrate UPI payments into a mobile app in India, how a payment gateway fits in, what to check before you pick a provider, and the mistakes that cause failed or duplicate payments.
The short answer
For most apps, the best route is a licensed payment gateway or aggregator that offers a mobile SDK with UPI intent, UPI collect and QR support, plus cards, wallets and net banking in the same checkout. You do not connect to UPI directly yourself. You integrate the gateway SDK, create an order on your server, let the customer pay, and confirm the result with a server-to-server webhook.
The three ways UPI works inside an app
| Method | How it works | Notes |
|---|---|---|
| UPI intent | The app opens the customer's UPI app (such as PhonePe, Google Pay or Paytm) to approve | Fast and the most common on mobile |
| UPI collect / VPA | The customer enters a UPI ID and approves a request in their app | Useful as a fallback; availability depends on your provider |
| UPI QR | The customer scans a QR shown on screen or in store | Good for in-person and web checkouts |
The integration, step by step
- Pick a gateway. Compare licensed providers on pricing, settlement time, UPI success rates, support and SDK quality for your platform (native, Flutter or React Native).
- Create the order on your server. Never trust an amount sent from the app. Your server sets the amount and gets an order ID from the gateway.
- Open the checkout in the app. Pass the order ID to the gateway SDK, which shows UPI and other methods.
- Verify on the server. When the payment finishes, confirm it with a signed webhook or a status call, and only then mark the order paid.
- Handle every outcome. Success, failure, pending and user-cancelled all need clear screens and safe retries.
- Test with real flows. Use the provider's test mode, then run live small-value payments before launch.
Mistakes that cost money
- Marking an order paid because the app said "success", without a server-side check.
- No idempotency, so a retry or double-tap creates two charges or two orders.
- Ignoring the "pending" state, which is common with UPI when a bank is slow.
- No refund and reconciliation flow, so your accounts never match the gateway report.
- Storing card or sensitive payment data yourself. Let the gateway handle it.
What to check before choosing a provider
- It is a licensed payment aggregator or gateway in India.
- Current pricing and settlement timelines, which you should confirm directly with the provider.
- UPI success rates and downtime history.
- Webhook reliability, test tools and developer documentation.
- Support for refunds, subscriptions and international cards if you need them.
Also plan your data protection duties. See the DPDP Act and mobile app security checklist, and read our broader guide to UPI and payment gateway integration in India.


Cost and timeline
For a typical app, a payment integration with server verification, refunds and testing adds roughly one to three weeks of work, and is usually part of a $5,000 to $10,000 MVP. These are market ranges, not offers. See how much a mobile app costs in India.
Need UPI payments in your app?
Himalya NextGen builds iOS and Android apps with payment integration, admin dashboards and reconciliation. Request a free, fixed-scope estimate.
FAQ
How do I integrate UPI payments into a mobile app?
Use a licensed payment gateway SDK. Create the order on your server, open the gateway checkout in the app, and confirm payment with a server-side webhook before fulfilling the order.
Can I accept UPI without a payment gateway?
For commercial apps, use a licensed gateway or aggregator so you get settlement, reconciliation and compliance. Personal UPI links are not suitable for a business checkout.
What is UPI intent?
It is a flow where your app opens the customer's installed UPI app to approve the payment, then returns to your app with the result.
Why do UPI payments show as pending?
The bank or UPI network may take time to confirm. Your app should show a pending state and your server should check the final status before completing the order.
How long does payment integration take?
Usually one to three weeks, including server verification, refunds and testing.
Topics: UPI payment integration · payment gateway for mobile apps India · UPI intent · android payment gateway
Keep reading
Digital Marketing · 4 min read
Digital Marketing for a New Website or App: What to Set Up First
Ads waste money when the website or app is not ready. Here is the order we use: product, search, landing page, then paid campaigns.
Growth · 4 min read
Mobile App User Acquisition Cost: What an Install Really Costs and Which Platform Is Cheaper
How app user acquisition cost works, Android vs iOS, cheaper ways to get users and a simple paid test.


