我已经将 razorpay 与颤振集成,一切正常。但它没有调用设备中存在的 upi 应用程序。如何做到这一点?
1 回答
0
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");
}
}
试试这个代码
我使用url_launcher插件来打开 UPI 应用程序。
深层链接网址'upi://pay?pa=dinesh@dlanzer&pn=Dinesh&am=1&tn=Test Payment&cu=INR'
,
upi
显示您手机中的 UPI 应用程序列表。
pay
被重定向到支付页面。
pa
您在此处提及 upi 地址(请注册企业 upi 帐户并在此处提及)。
am
金额在这里输入。
tn
只是通过按摩。
cu
提及您要付款的货币
于 2022-01-15T11:42:17.087 回答