使用URL方案的Google Pay UPI集成-iOS [英] Google Pay UPI integration using URL Schemes - iOS

查看:91
本文介绍了使用URL方案的Google Pay UPI集成-iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据NPCI文档提供的指南,我正在开发一个使用UPI接受付款的应用程序,该指南位于链接

I'm developing an app that accepts Payment using UPI, as per the guidelines provided by the NPCI documentation available at link https://www.npci.org.in/sites/all/themes/npcl/images/PDF/UPI_Linking_Specs_ver_1.5.1.pdf I am able to replicate the Intent base behavior in android as per the documentation of Google Pay available at link https://developers.google.com/pay/india/api/android/in-app-payments but I am not able to achieve the same behavior in iOS using URL schemes if more than one UPI supported apps are installed in iPhone.

例如如果我仅在安装了Google Pay的情况下在iPhone中使用以下代码,则以下代码运行正常

e.g. If I am using below code in iPhone if only Google Pay is installed then the below code is working fine

let urlString = "upi://pay?pa=test@dcb&cu=INR&mc=0000&appName=TEST&tn=To&am=1.0&pn=TEST&tr=TEST-1574159602900"

guard let url = URL.init(string: textView.text) else {
            return
        }
UIApplication.shared.openURL(url)

如果安装了多个支持 UPI URL方案的应用程序,那么任何人都可以帮助我找出Google Pay支持的确切URL方案以使用URL方案进行付款.upi://

Anyone can help me to find out the exact URL schemes supported by Google Pay to initiate the payment using URL schemes if more than one Apps are installed that support UPI URL scheme i.e. upi://

推荐答案

您可以使用应用程序本机Web视图,而不用打开浏览器(在应用程序外部)通过网络创建付款请求.>

You can use application native web view instead of opening browser(outside of the application) Seel the create payment request using web.

supportedMethods:" https://tez.google.com/pay "

这篇关于使用URL方案的Google Pay UPI集成-iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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