If you are building an Android app in India that takes money, the payment gateway is one of the first technical decisions you make, and one of the hardest to change later. It touches your checkout, your refunds, your accounting and your compliance. This guide compares the common options, explains how the integration actually works on Android, and lists the mistakes we see most often.
The short answer
For most Indian Android apps, start with a gateway that supports UPI, cards, net banking and wallets through one SDK, has a good Flutter or native Android library, and settles to your bank account in a predictable number of days. Razorpay, Cashfree, PayU and PhonePe Payment Gateway all fit that description. The best choice depends on your fees, your settlement needs, your category and how good their support is when something breaks. Always confirm current pricing on the gateway's own site, because fees and onboarding rules change.
What an Android payment gateway actually does
A gateway sits between your app, the customer's bank or UPI app, and your bank account. Your app never handles raw card numbers. Instead the flow looks like this:

- Your server creates an order with the gateway and gets an order ID.
- Your app opens the gateway's checkout SDK with that order ID.
- The customer pays with UPI, a card, net banking or a wallet.
- The gateway confirms the result to your app and, more importantly, to your server through a webhook.
- Your server verifies the signature, marks the order paid and unlocks the product.
Step 5 is the one people skip. Never trust the payment result shown in the app alone. A tampered or interrupted app can report success when no money moved. The server-side webhook and signature check is the source of truth.
Comparing the common options
| Gateway | Good fit for | Things to check |
|---|---|---|
| Razorpay | Startups and SaaS, subscriptions, wide method coverage, mature docs | Fees on international cards, hold rules for new accounts |
| Cashfree | Fast settlements, payouts and marketplace splits | Payout charges, onboarding documents |
| PayU | Larger merchants and ecommerce with high volume | Integration effort, support turnaround |
| PhonePe Payment Gateway | Apps where UPI share is very high | Method coverage beyond UPI, onboarding scope |
| Paytm Payment Gateway | Businesses whose customers already use the Paytm wallet | Wallet vs UPI settlement terms |
| Stripe (India) | Apps that also sell abroad | Availability for your business type, domestic method coverage |
This table is a starting point, not a ranking. Gateways change their products often, so use it to build a shortlist, then compare written quotes.
How to choose: seven questions
- What will you sell? Digital goods, physical goods, services and subscriptions follow different rules. Digital goods consumed inside an app can also trigger Google Play billing requirements.
- Which payment methods do your users prefer? In India UPI dominates small and medium payments, while cards matter for higher-value orders and subscriptions.
- What are the real fees? Ask for the percentage, the fixed fee, GST on the fee, and charges for refunds, disputes and international cards.
- How fast is settlement? T+1 or T+2 is common, and new accounts are sometimes held longer. This affects your cash flow.
- Do you need payouts or splits? Marketplaces that pay sellers or delivery partners need a product built for that, not a basic checkout.
- How good is the Android and Flutter SDK? Read the changelog and open issues. A poorly maintained SDK becomes your maintenance problem.
- What happens when something fails? Look for clear webhooks, a dashboard with search, and a support route you can actually reach.
The Indian compliance points you should know
- RBI card rules. Merchants cannot store full card numbers. Saved cards use tokenisation handled by the gateway and the card networks.
- KYC for your business. Expect to provide PAN, bank details, a business registration or GST details, and sometimes a website or app link for review.
- UPI intent and collect flows. Intent flows open the customer's UPI app directly and usually convert better than asking the customer to type a UPI ID.
- DPDP Act. Payment data is personal data. Keep what you store to a minimum and document why. Our DPDP security checklist covers the basics.
Integration steps for an Android or Flutter app
- Create a test account with your chosen gateway and get test keys.
- Build a small server endpoint that creates orders. Keep the secret key on the server only, never inside the app.
- Add the SDK to the app and open checkout with the order ID, amount and customer details.
- Handle every result: success, failure, user cancelled, pending and unknown. Pending and unknown are real states, especially for UPI.
- Add the webhook on your server, verify the signature, and make it idempotent so the same event twice never credits an order twice.
- Add a reconciliation job that checks orders stuck in pending and asks the gateway for their final status.
- Test the awkward cases: network drop mid-payment, app killed after paying, double tap, expired order, refund and partial refund.
- Go live with real keys, a small real payment, and a refund of that payment.
For UPI-specific detail, read UPI and payment gateway integration in mobile apps and how to integrate UPI payments.

Mistakes we see most often
- Marking an order paid from the app result without a webhook check.
- Putting the gateway secret key inside the APK, where anyone can extract it.
- Not handling the pending state, so customers pay and see an error.
- Using the live gateway for testing and paying real fees on every experiment.
- Hard-coding one gateway across the code, which makes switching painful. Keep a thin payment layer so the gateway is replaceable.
- Forgetting refunds, invoices and GST reports until the first accounting month-end.
How long does it take and what does it cost?
A standard checkout with one gateway, a server endpoint, webhooks and a reconciliation job is usually one to three weeks of work inside a larger app, depending on how many payment methods, subscriptions or payouts you need. The gateway's own fee is separate and is charged per transaction. For wider budget context see how much a mobile app costs in India.
FAQ
Which payment gateway is best for an Android app in India?
There is no single best one. Razorpay, Cashfree, PayU and PhonePe Payment Gateway all work well for typical apps. Choose by fees, settlement time, supported methods, SDK quality and support, and test two gateways in sandbox before you commit.
Can I accept UPI payments in my app without a gateway?
Technically you can open a UPI app with a payment link, but you get no reliable confirmation, no reconciliation and weak dispute handling. A gateway gives you verified results and reporting, which is worth the fee.
Do I need a company to integrate a payment gateway?
Many gateways accept proprietorships and individuals with the right documents, though some categories and higher limits need a registered business. Check the gateway's onboarding page for your case.
Is Google Play billing required for payments inside my app?
Google requires its billing system for digital goods and subscriptions consumed inside the app. Physical goods and real-world services can use an external gateway. Read the current Play policy before you design the flow.
How do I keep payments secure in my Android app?
Keep secrets on the server, verify every payment by webhook signature, use HTTPS only, never log card or UPI details, and use the gateway's SDK rather than building your own card form.
Himalya NextGen builds Android and Flutter apps with payments, subscriptions and payouts for businesses in India and abroad. Request a free estimate and we will recommend a gateway for your use case.
Topics: payment gateway for android app india · android payment gateway integration · razorpay vs cashfree · upi payment gateway app
Keep reading
Payments · 4 min read
How to Integrate UPI Payments in a Mobile App (Android and iOS, 2027 Guide)
UPI intent, collect and QR, the gateway integration steps, server-side verification and the mistakes that cause failed or duplicate payments.
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.


