本文介绍了如何将BHIM应用程序支付网关集成到Android应用程序中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过upi id将BHIM应用程序支付网关集成到android应用中?
我对支付网关一无所知,之前还没有实现支付网关.

请帮助我如何进行集成android应用中的付款网关?(我想通过BHIM应用集成付款)

How to integrate BHIM app payment gateway in an android app, through upi id?
I have no idea about payment gateway,I have not implemented payment gateway before.

Please help me how to integrate payment gateway in an android app?(I want to integrate payment through BHIM app)

推荐答案

您可以尝试DeepLinking UPI支持的应用程序.这样,您可以通过任何受UPI支持的应用程序(BHIM,Phonepe,Paytm和所有银行UPI应用程序)进行付款

You can try DeepLinking UPI supported application. This way you can make a payment via any UPI supported application (BHIM, Phonepe, Paytm and all bank UPI apps)

深层链接的代码如下:

Uri uri = Uri.parse("upi://pay?pa=8866616231@upi&pn=Aayushi%20Shah&tn=Test%20for%20Deeplinking&am=1&cu=INR&url=https://mystar.co"); // missing 'http://' will cause crashed
Log.d(TAG, "onClick: uri: "+uri);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivityForResult(intent,1);

几乎所有UPI应用程序都能够成功付款.问题是,并非所有应用程序都返回事务是否成功.

Almost all UPI application are successfully able to make the payment.The problem with this is, not all application are returning whether the transaction was a success or not.

我正在找到一种解决方案,可以强制打开BHIM而不打开其他任何应用程序,因为BHIM会给出适当的响应.

I am finding a solution where i can force to open Only BHIM and not any other app, as BHIM is giving proper response back.

如果您想查看完整的实现,请执行以下操作: https://github.com/ShahMalavS/UPI-DeepLinked

If you want to see the full implementation: https://github.com/ShahMalavS/UPI-DeepLinked

这篇关于如何将BHIM应用程序支付网关集成到Android应用程序中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 09:15