react-native-upi icon indicating copy to clipboard operation
react-native-upi copied to clipboard

you have to add new parms also

Open getsettalk opened this issue 2 years ago • 6 comments

Hi , Most of transaction goes faild and message is showing that : limit reached/ risky payment?

so you have to add new params 👍

Uri uri = Uri.parse("upi://pay").buildUpon()
         .appendQueryParameter("pa", upiId)
         .appendQueryParameter("pn", name)
         .appendQueryParameter("mc", "")            /// 1st param - use it (it was commented on my earlier tutorial)
         //.appendQueryParameter("tid", "02125412")
         .appendQueryParameter("tr", "25584584")   /// 2nd param - use it (it was commented on my earlier tutorial)
         .appendQueryParameter("tn", note)
         .appendQueryParameter("am", amount)
         .appendQueryParameter("cu", "INR")
         //.appendQueryParameter("refUrl", "blueapp")
         .build();

please read here also : https://www.blueappsoftware.com/google-pay-error-bank-limit-exceeded/

above code in java , you have to add that in react -native this package

getsettalk avatar Sep 28 '23 03:09 getsettalk

Would you like to make a PR, i can merge it.. Sorry have been very occupied with personal life so dont get time for this.

nitish24p avatar Oct 02 '23 04:10 nitish24p

Can you try and update to V 1.0.5

nitish24p avatar Oct 02 '23 05:10 nitish24p

@nitish24p with V 1.0.5 also it is failing. Could you please update the steps for merchant payment.

Sourav-techlur avatar Oct 02 '23 08:10 Sourav-techlur

I added the following in the Readme

{
  /*
  * REQUIRED
  * vpa is the address of the payee given to you
  * by your bank
  */
  vpa: 'somehandle@upi',

  /*
  * REQUIRED
  * payeeName is the name of the payee you want
  * to make a payment too. Some upi apps need this
  * hence it is a required field
  */
  payeeName: 'Payee name',

  /*
  * REQUIRED
  * This is a reference created by you / your server
  * which can help you identify this transaction
  * The UPI spec doesnt mandate this but its a good to have
  */
  transactionRef: 'some-hash-string',

  /*
  * REQUIRED
  * The actual amount to be transferred
  */
  amount: '200',

  /*
  * OPTIONAL
  * Transactional message to be shown in upi apps
  */
  transactionNote: 'for food'

  /*
  * OPTIONAL
  * Transactional message to be shown in upi apps
  */
  merchantCode: 'Merchant Code for the payor'
}

nitish24p avatar Oct 02 '23 15:10 nitish24p

Thanks a lot.

On Mon, 2 Oct 2023, 9:14 pm Nitish Phanse, @.***> wrote:

I added the following in the Readme

{ /*

  • REQUIRED
  • vpa is the address of the payee given to you
  • by your bank / vpa: @.**',

/*

  • REQUIRED
  • payeeName is the name of the payee you want
  • to make a payment too. Some upi apps need this
  • hence it is a required field */ payeeName: 'Payee name',

/*

  • REQUIRED
  • This is a reference created by you / your server
  • which can help you identify this transaction
  • The UPI spec doesnt mandate this but its a good to have */ transactionRef: 'some-hash-string',

/*

  • REQUIRED
  • The actual amount to be transferred */ amount: '200',

/*

  • OPTIONAL
  • Transactional message to be shown in upi apps */ transactionNote: 'for food'

/*

  • OPTIONAL
  • Transactional message to be shown in upi apps */ merchantCode: 'Merchant Code for the payor' }

— Reply to this email directly, view it on GitHub https://github.com/nitish24p/react-native-upi/issues/54#issuecomment-1743261600, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALY3KNAIWO2A77O72KABITLX5LOMLAVCNFSM6AAAAAA5KJXNLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGI3DCNRQGA . You are receiving this because you authored the thread.Message ID: @.***>

getsettalk avatar Oct 03 '23 01:10 getsettalk

Is the issue resolved ? I am facing " limit reached/ risky payment?" issue.

uday8373 avatar Oct 04 '23 09:10 uday8373