如何在 Android 应用程序中集成 BHIM 应用程序支付网关? [英] How to integrate BHIM app payment gateway in an Android App?

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

问题描述

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

请帮我如何集成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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆