Open UnSensei opened 5 years ago
Can you tell me for which case this happens?
hey, im not really sure i understood what you meant by which case, but i tried it with google Pay and Amazon Pay, the payments are going through to the right owner, but the transactionID and SUCCESS CASE which are meant to be returned through the successCallback are instead returned in the failureCallback. Medium Article by sombody this is a link to medium page where the author has shown what i mean.
Aahh okay got it. will fix this over the weekend
@nitish24p Thank you, this will help me clean my code to standard. P.S if you could send reply when u fix it, it'll be very appreciated.
Yes was travelling last weekend. was away from work.. will do this
i m also faced same problem Fix the response comparison code on
node_modules/react-native-upi-payment/android/src/main/java/com/upi/payment/UpiPaymentModule.java
on line no 89
if (bundle.getString("response") == "SUCCESS") {
Replace with
if (data.getStringExtra("Status").trim().equals("SUCCESS")){
@prasanthown can you give a PR.. i'll merge it and push to npm
The library works fine and does as it advertises, but the returns are mixed. successcallback doesnt return anything.