r/developersKolkata • u/Brilliant_Target_617 • 1d ago
Help UPI Deep Link (upi://pay) opens GPay/PhonePe but payment fails with "You've exceeded the bank limit" – P2P personal QR integration issue
Hi everyone,
I'm developing a small application that scans UPI QR codes, extracts the payment details, allows the user to enter or modify the amount when appropriate, and launches a UPI payment app using a upi://pay URI.
I'm currently facing a strange issue with P2P (personal UPI QR/VPA) payments.
My original personal QR payload
When I scan my personal QR code, the decoded payload is:
upi://pay?pa=xxxx@axl&pn=xxxx&mc=0000&mode=02&purpose=00The QR works perfectly when scanned directly using Google Pay. I can also successfully complete a payment by manually entering my VPA in Google Pay.
However, when I use the extracted URI from my application and launch it externally, the UPI app opens but the payment fails.
Error message
Google Pay displays:
Your money has not been debited. You've exceeded the bank limit for this payment. Retry with smaller amount.
The same general issue occurs with other UPI applications, including PhonePe.
What I've tried
I've tested several URI variations:
1. Minimal URI.
2. Adding payee name and currency.
3. Adding an amount.
4. Original QR payload.
I've also experimented with changing the mode parameter, including trying different modes for QR and intent-based payments. Changing the mode has not resolved the issue.
Even a ₹1 payment request fails with the same error.
What I've verified
My VPA is valid and active.
I can successfully complete actual payments by manually entering the VPA in Google Pay.
Scanning my original QR directly inside Google Pay works.
The UPI apps open successfully when launched through the Android deep link.
The failure occurs when attempting to complete the payment through the externally generated URI.
Questions
Is a personal P2P QR URI with
mc=0000andmode=02supposed to work when launched directly through an AndroidACTION_VIEWintent?Does a P2P payment intent require additional parameters such as
tr,tid,orgid, orsign?Is
mode=02strictly intended for secure QR scanning, whilemode=04is intended for ordinary UPI intent handoff?Can a personal VPA payment be initiated through a generic
upi://paydeep link without merchant onboarding or PSP integration?Could Google Pay be interpreting an incomplete or incorrectly constructed intent as a transaction-limit issue?
Is there an officially recommended way to initiate P2P payments from a third-party Android application?
I don't want to fabricate merchant identifiers, transaction references, or signatures just to make the URI work. I'd like to understand the correct implementation for personal P2P payments, while keeping merchant P2M payments supported separately.
Any guidance from people who have implemented UPI deep links or worked with NPCI/PSP integrations would be greatly appreciated.
Thanks!