在iOS中使用深层链接进行UPI集成 [英] UPI integration using deeplinking in iOS

查看:77
本文介绍了在iOS中使用深层链接进行UPI集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户通过UPI点击Pay时,我正在打开Goog​​lePay,PhonePe或PayTM应用.

I am working on opening GooglePay, PhonePe or PayTM app when the user taps on Pay via UPI.

根据NPCI文档 https://www.npci.org.in/sites/default/files/UPI%20Linking%20Specs_ver%201.6.pdf ,当我尝试打开 upi://pay?parm-name = param-value& param-name = pram-value& ... 或本质上是 upi://,它会从移动浏览器中随机打开任何已安装UPI的应用程序(在我的情况下为whatsApp),如果whatsApp不是没有安装,它打开了PayTM.

According to NPCI docs https://www.npci.org.in/sites/default/files/UPI%20Linking%20Specs_ver%201.6.pdf, when I try to open upi://pay?parm-name=param-value&param-name=pram-value&... or essentially upi:// from mobile browser, it randomly opens any UPI installed application (whatsApp in my case) and if whatsApp isn't installed, it opened PayTM.

我希望应用程序中有一种行为,如果用户点击通过GooglePay付款,则GooglePay应用程序应打开并预填充金额,并链接到与CRED应用程序类似的商户.

I want a behaviour in my app where if a user taps on Pay via GooglePay, GooglePay app should open with prefilled amount and merchant linked to it just like how CRED app does it.

如何实现类似的功能?

我尝试了 tez://的PS,它会打开Goog​​lePay应用程序,但未在任何地方进行记录,因此我不知道我是否可以依靠它.

PS I tried tez://, it opens GooglePay app but it isn't documented anywhere so I don't know if I can rely on it.

是否可以在不使用SDK的情况下实现?我只想使用URL方案来实现它.

Can I achieve it without using SDK? I want to use only URL scheme to achieve it.

推荐答案

这也没有记录,但是您可能想尝试的两种方案是:

This isn't documented either but the two schemes that you might want to try are:

  • tez://upi/*
  • gpay://upi/*

如果我不得不猜测哪个会得到更好的支持,那就是 gpay 选项.

If I had to take a guess about which one will be better supported it would be the gpay option.

我已经尝试过了,但看起来不像我在上面的工作中提供的URI.参见 https://internal-absorbed-celsius.glitch.me/

I've tried and it doesn't look like the URI's I provided above work. See https://internal-absorbed-celsius.glitch.me/

这篇关于在iOS中使用深层链接进行UPI集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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