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']);
}
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.
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")){