I am trying to initiate payment using UPI from Android IONIC(Javascript) App
I get following exception
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND dat=upi://pay?pa=recipient@hdfc&pn=recipient_name&am=102.00&tn=Test_Transaction }
01-10 21:58:32.334 E/PluginManager(29853): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1792)
01-10 21:58:32.334 E/PluginManager(29853): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1512)
I have 3 UPI enabled Apps on my device: BHIM and PhonePe from Yes bank and iMobile from ICICI
Here is piece of code
window.plugins.webintent.startActivity({
action: window.plugins.webintent.ACTION_VIEW,
url: upiUrl
},
function()
{
console.log("After calling startActivity");
},
function() {
console.log("Failed to open URL via Android Intent. URL: " + upiUrl)
}
);