Android Intent 在 Android Chrome 最近版本 110 中无法打开。

huangapple go评论102阅读模式
英文:

Android Intent not opeining in Android Chrome recent version 110

问题

无法确切确定在移动设备的 Chrome 浏览器上打开 UPI(统一支付接口)付款链接失败的确切原因。

在以下环境中观察到失败:

  • Chrome 版本:110,Android 12,诺基亚设备

通过的环境包括:

  • Chrome 版本:110,Android 11,一加设备
  • Safari:16,iOS 16
  • Firefox

样本 UPI 链接如下:

  1. <a target="_self" href="upi://pay?pa=Naukri.payu@indus&pn=Info Edge India Limited&tr=16796361409&am=1.00">Link1</a>
  2. <a target="_self" href="upi://pay? pa=jeevansathi1.payu@hdfcbank&pn=Info Edge India Limited&tr=16796449075&am=1.00">Link2</a>
  3. <a target="_self" href="upi://pay?tr=202101345671229366&tid=121313202101345671229366&pa=juspay@axisbank&mc=1234&pn= Merchant%20Inc&am=1.00&cu=INR&tn=Pay%20for%20merchant">Link3</a>
英文:

I am trying to open to UPI payment link in the chrome browser on mobile devices but it's failing, I cannot figure out the exact reason.

failures observed in

> chrome:110, android 12, nokia device

passed in

> chrome:110, android 11, one plus device,

> safari: 16, ios 16,

> firefox

sample UPI links

&lt;a target=&quot;_self&quot; href=&quot;upi://pay?pa=Naukri.payu@indus&amp;pn=Info Edge India Limited&amp;tr=16796361409&amp;am=1.00&quot;&gt;Link1&lt;/a&gt;

&lt;a target=&quot;_self&quot; href=&quot;upi://pay? pa=jeevansathi1.payu@hdfcbank&amp;pn=Info Edge India Limited&amp;tr=16796449075&amp;am=1.00&quot;&gt;Link2&lt;/a&gt;

&lt;a target=&quot;_self&quot; href=&quot;upi://pay?tr=202101345671229366&amp;tid=121313202101345671229366&amp;pa=juspay@axisbank&amp;mc=1234&amp;pn= Merchant%20Inc&amp;am=1.00&amp;cu=INR&amp;tn=Pay%20for%20merchant&quot;&gt;Link3&lt;/a&gt;

答案1

得分: 4

你在这个URL中犯了一些小错误,
首先,在这个URL中,&amp;字符应该被转义,即&amp;amp;
另外,你需要以INR的货币形式输入,即cu=INR

完整的可工作链接应该是:

&lt;a href=&quot;upi://pay?pa=Naukri.payu@indus&amp;amp;pn=Info Edge India Limited&amp;amp;tr=16796361409&amp;amp;am=1.00&amp;amp;cu=INR&quot;&gt;立即支付!&lt;/a&gt;

更一般的URL格式如下-

upi://pay?pa=UPI_ID&amp;amp;pn=NAME_OF_MERCHANT&amp;amp;tr=TRANSACTION_ID&amp;amp;am=AMOUNT&amp;amp;cu=INR

小提示:在这个URL中添加任何空格都是完全可以的 :). 空格会自动转义为%20的ASCII码。

英文:

You have made some slight mistakes in this URL,
First of all, the &amp; character in this URL should be escaped i.e. &amp;amp;
Also, you have to enter the currency as INR i.e. cu=INR

The complete working link can be given as:

&lt;a href=&quot;upi://pay?pa=Naukri.payu@indus&amp;amp;pn=Info Edge India Limited&amp;amp;tr=16796361409&amp;amp;am=1.00&amp;amp;cu=INR&quot;&gt;Pay Now !&lt;/a&gt;

The more general URL is something like-

upi://pay?pa=UPI_ID&amp;amp;pn=NAME_OF_MERCHANT&amp;amp;tr=TRANSACTION_ID&amp;amp;am=AMOUNT&amp;amp;cu=INR

Small Note: Adding any spaces in this URL is completely fine :). The spaces are automatically escaped to the %20 ASCII code.

huangapple
  • 本文由 发表于 2023年2月16日 16:39:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/75469668.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定