nitish24p / react-native-upi

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

Showing warning "This transaction may be risky" and got failed #32

Open AayushOjha opened 2 years ago

AayushOjha commented 2 years ago

In many mobiles I am getting this issue with google-pay and phone-pe that 'this transaction may be risky. for your safety it cannot be completed at this time'

what could be the possible solution?

ajitmaurya4342 commented 2 years ago

Same error i am also facing

SarathKannan commented 2 years ago

Got similar error...

20210824_152003.jpg

305425 commented 2 years ago

same i am facing

ImPDP commented 2 years ago

You need to use merchant UPI ID (registered in Business UPI App).

karankarakoti commented 2 years ago

any solution? got the same error while using business id

nitish24p commented 2 years ago

I dont think this is related to the library persay. You might have to check if this is a valid upi merchant id

avinash-capsitech commented 1 year ago

you can solve this error from below

  1. transactionRef: 'send every time new transactionRef'.
  2. also You need to use merchant UPI ID (registered in Business UPI App). It wokred for me !!
valisettisuresh commented 1 year ago

same

Got similar error...

20210824_152003.jpg

same problem

Dk2626 commented 1 year ago

merchant id in the merchant code property, Am I right?

sk02769 commented 1 year ago

Getting same error

sk02769 commented 1 year ago

you can solve this error from below

  1. transactionRef: 'send every time new transactionRef'.
  2. also You need to use merchant UPI ID (registered in Business UPI App). It wokred for me !!

Can you show little things how you did it

Dk2626 commented 1 year ago

upi payment Hi, thanks for your reply, I used new transactionRef, but I am getting "Transaction is risky", I have attached my code!

Dk2626 commented 1 year ago

you can solve this error from below

  1. transactionRef: 'send every time new transactionRef'.
  2. also You need to use merchant UPI ID (registered in Business UPI App). It wokred for me !!

Can you show little things how you did it

upi payment Hi, thanks for your reply, I used new transactionRef, but I am getting "Transaction is risky", I have attached my code!

sk02769 commented 1 year ago

You are asking or this code worked for you

On Sat, Nov 19, 2022 at 9:11 PM Dinesh Dk @.***> wrote:

you can solve this error from below

  1. transactionRef: 'send every time new transactionRef'.
  2. also You need to use merchant UPI ID (registered in Business UPI App). It wokred for me !!

Can you show little things how you did it

[image: upi payment] https://user-images.githubusercontent.com/52568067/202858969-a64860f6-2152-4526-a250-5bfcffc98fc0.png Hi, thanks for your reply, I used new transactionRef, but I am getting "Transaction is risky", I have attached my code!

— Reply to this email directly, view it on GitHub https://github.com/nitish24p/react-native-upi/issues/32#issuecomment-1320910785, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYWUMCCFP25JGGJ6EVPH5DWJDYKDANCNFSM5BABZ5OA . You are receiving this because you commented.Message ID: @.***>

Dk2626 commented 1 year ago

It is not worked for me, I am asking

On Sat, 19 Nov, 2022, 9:55 pm sk02769, @.***> wrote:

You are asking or this code worked for you

On Sat, Nov 19, 2022 at 9:11 PM Dinesh Dk @.***> wrote:

you can solve this error from below

  1. transactionRef: 'send every time new transactionRef'.
  2. also You need to use merchant UPI ID (registered in Business UPI App). It wokred for me !!

Can you show little things how you did it

[image: upi payment] < https://user-images.githubusercontent.com/52568067/202858969-a64860f6-2152-4526-a250-5bfcffc98fc0.png

Hi, thanks for your reply, I used new transactionRef, but I am getting "Transaction is risky", I have attached my code!

— Reply to this email directly, view it on GitHub < https://github.com/nitish24p/react-native-upi/issues/32#issuecomment-1320910785 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/APYWUMCCFP25JGGJ6EVPH5DWJDYKDANCNFSM5BABZ5OA

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/nitish24p/react-native-upi/issues/32#issuecomment-1320918510, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRCAA2VAZVBBXR7GBLAHXDWJD5PDANCNFSM5BABZ5OA . You are receiving this because you commented.Message ID: @.***>

sk02769 commented 1 year ago

I thought you have done it have you another way to integrate it

On Sat, Nov 19, 2022 at 10:05 PM Dinesh Dk @.***> wrote:

It is not worked for me, I am asking

On Sat, 19 Nov, 2022, 9:55 pm sk02769, @.***> wrote:

You are asking or this code worked for you

On Sat, Nov 19, 2022 at 9:11 PM Dinesh Dk @.***> wrote:

you can solve this error from below

  1. transactionRef: 'send every time new transactionRef'.
  2. also You need to use merchant UPI ID (registered in Business UPI App). It wokred for me !!

Can you show little things how you did it

[image: upi payment] <

https://user-images.githubusercontent.com/52568067/202858969-a64860f6-2152-4526-a250-5bfcffc98fc0.png

Hi, thanks for your reply, I used new transactionRef, but I am getting "Transaction is risky", I have attached my code!

— Reply to this email directly, view it on GitHub <

https://github.com/nitish24p/react-native-upi/issues/32#issuecomment-1320910785

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/APYWUMCCFP25JGGJ6EVPH5DWJDYKDANCNFSM5BABZ5OA

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/nitish24p/react-native-upi/issues/32#issuecomment-1320918510 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AMRCAA2VAZVBBXR7GBLAHXDWJD5PDANCNFSM5BABZ5OA

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/nitish24p/react-native-upi/issues/32#issuecomment-1320920259, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYWUMA7SMY5MPD65BD4VALWJD6T7ANCNFSM5BABZ5OA . You are receiving this because you commented.Message ID: @.***>

sk02769 commented 1 year ago

or anythoer npm things

On Sat, Nov 19, 2022 at 10:08 PM sanjay kumar @.***> wrote:

I thought you have done it have you another way to integrate it

On Sat, Nov 19, 2022 at 10:05 PM Dinesh Dk @.***> wrote:

It is not worked for me, I am asking

On Sat, 19 Nov, 2022, 9:55 pm sk02769, @.***> wrote:

You are asking or this code worked for you

On Sat, Nov 19, 2022 at 9:11 PM Dinesh Dk @.***> wrote:

you can solve this error from below

  1. transactionRef: 'send every time new transactionRef'.
  2. also You need to use merchant UPI ID (registered in Business UPI App). It wokred for me !!

Can you show little things how you did it

[image: upi payment] <

https://user-images.githubusercontent.com/52568067/202858969-a64860f6-2152-4526-a250-5bfcffc98fc0.png

Hi, thanks for your reply, I used new transactionRef, but I am getting "Transaction is risky", I have attached my code!

— Reply to this email directly, view it on GitHub <

https://github.com/nitish24p/react-native-upi/issues/32#issuecomment-1320910785

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/APYWUMCCFP25JGGJ6EVPH5DWJDYKDANCNFSM5BABZ5OA

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/nitish24p/react-native-upi/issues/32#issuecomment-1320918510 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AMRCAA2VAZVBBXR7GBLAHXDWJD5PDANCNFSM5BABZ5OA

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/nitish24p/react-native-upi/issues/32#issuecomment-1320920259, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYWUMA7SMY5MPD65BD4VALWJD6T7ANCNFSM5BABZ5OA . You are receiving this because you commented.Message ID: @.***>

avinash-capsitech commented 1 year ago

try this Code,May be it help's you function upiPayment() { RNUpiPayment.initializePayment( { vpa: 'Enter your merchantID', // Like:--> 9876543210@upi payeeName: 'upi registered', //your shop name which is registered in bank amount: getAmount, transactionRef: isVerification === 'verified' ? transRef : props.transRef, //this check for verification transactionRef(same or new transactionRef)
}, successCallback, failureCallback, ); }

function successCallback(data: any) { console.log('Succes data :----->', data); / This callback is not returning any type of data so we do jugad in failure mehtod/ } //worked function failureCallback(data: any) { if (data.Status === 'SUCCESS' || data.Status === 'Success') { paymentAction(); } else if (data.Status === 'FAILURE') { paymentAction(); } else { props.onDismiss(data.Status); } }

valisettisuresh commented 1 year ago

what is paymentAction()

avinash-capsitech commented 1 year ago

what is paymentAction()

When payment is completed successfully then we call post payment API in which we send success data to server. Note:- If you don't want anything after successful completion of payment please ignore it.