nitish24p / react-native-upi

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

callback method(successCallback,failureCallback) not return anything with data #13

Open prashilak opened 4 years ago

prashilak commented 4 years ago

I use console get data but still successful payment it does not return anything, and I also change the this line if (data.getStringExtra("Status").trim().equals("SUCCESS")){

function successCallback(data) {
  console.log(data);
  setStatus("success")
  settxnId(data['txnId']);  
}
AayushOjha commented 3 years ago

successCallback does not return anything that is true in my case also but, overcome through this by checking status = 'SUCCESS' in failureCallback function, and that thing worked for me.