Flutter:如何通过深链接通过Android意图获得UPI付款的付款状态
我试图通过
void _pay() async {
String _url='upi://pay?pa=name@upi&pn=Name&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");
}
}
在打开UPI应用程序后启动URL并付款来通过Deep Link来弥补Android的付款,我将如何知道付款是否成功,如何获得付款状态?
I am trying to make UPI payment by android intent through deep link by launching URL
void _pay() async {
String _url='upi://pay?pa=name@upi&pn=Name&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");
}
}
After opening the UPI app and making payment how would i know that payment was succesful or not, how to get the payment status?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
而不是直接使用URL,而是使用具有获得付款状态的功能的Library upi_pay
instead of using url directly, use library upi_pay which have the functionality to get status of payment