is there any way to invoke UPI app on device

5k views Asked by At

I have integrated razorpay with flutter and everything is working .But it is not invoking the upi app present in device.how to do that?

1

There are 1 answers

7
dinesh balan On
void _launchURL() async {
    String _url='upi://pay?pa=dinesh@dlanzer&pn=Dinesh&am=1&tn=Test Payment&cu=INR';
    var result = await launch(_url);
     debugPrint(result.toString());
     if (result ==true) {
       print("Done");
     } else if (result ==false){
       print("Fail");
     }
  }

Try this code

I use url_launcher plugin for open UPI apps.

Deeplink url 'upi://pay?pa=dinesh@dlanzer&pn=Dinesh&am=1&tn=Test Payment&cu=INR',

upi show list of UPI apps you have in your mobile.

pay is redirect to payment page.

pa you mention upi address here (please make business upi account and mention here).

am amount enter here.

tn just pass massage.

cu mention which currency you want to make payment