英文:
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 链接如下:
- <a target="_self" href="upi://pay?pa=Naukri.payu@indus&pn=Info Edge India Limited&tr=16796361409&am=1.00">Link1</a>
- <a target="_self" href="upi://pay? pa=jeevansathi1.payu@hdfcbank&pn=Info Edge India Limited&tr=16796449075&am=1.00">Link2</a>
- <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
<a target="_self" href="upi://pay?pa=Naukri.payu@indus&pn=Info Edge India Limited&tr=16796361409&am=1.00">Link1</a>
<a target="_self" href="upi://pay? pa=jeevansathi1.payu@hdfcbank&pn=Info Edge India Limited&tr=16796449075&am=1.00">Link2</a>
<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>
答案1
得分: 4
你在这个URL中犯了一些小错误,
首先,在这个URL中,&
字符应该被转义,即&amp;
。
另外,你需要以INR的货币形式输入,即cu=INR
。
完整的可工作链接应该是:
<a href="upi://pay?pa=Naukri.payu@indus&amp;pn=Info Edge India Limited&amp;tr=16796361409&amp;am=1.00&amp;cu=INR">立即支付!</a>
更一般的URL格式如下-
upi://pay?pa=UPI_ID&amp;pn=NAME_OF_MERCHANT&amp;tr=TRANSACTION_ID&amp;am=AMOUNT&amp;cu=INR
小提示:在这个URL中添加任何空格都是完全可以的 :). 空格会自动转义为%20
的ASCII码。
英文:
You have made some slight mistakes in this URL,
First of all, the &
character in this URL should be escaped i.e. &amp;
Also, you have to enter the currency as INR i.e. cu=INR
The complete working link can be given as:
<a href="upi://pay?pa=Naukri.payu@indus&amp;pn=Info Edge India Limited&amp;tr=16796361409&amp;am=1.00&amp;cu=INR">Pay Now !</a>
The more general URL is something like-
upi://pay?pa=UPI_ID&amp;pn=NAME_OF_MERCHANT&amp;tr=TRANSACTION_ID&amp;am=AMOUNT&amp;cu=INR
Small Note: Adding any spaces in this URL is completely fine :). The spaces are automatically escaped to the %20
ASCII code.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论