nitish24p / react-native-upi

A tiny module for Adding payments via UPI in your react native apps ❤️
MIT License
77 stars 30 forks source link

you have to add new parms also #54

Open getsettalk opened 1 year ago

getsettalk commented 1 year ago

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

nitish24p commented 1 year ago

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 commented 1 year ago

Can you try and update to V 1.0.5

Sourav-techlur commented 1 year ago

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

nitish24p commented 1 year ago

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'
}
getsettalk commented 1 year ago

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: @.***>

uday8373 commented 1 year ago

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