贝宝移动快递重定向到网络,而不是移动 [英] paypal mobile express redirects to web instead of mobile

查看:89
本文介绍了贝宝移动快递重定向到网络,而不是移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序支持贝宝付款,并且我使用移动快递付款,现在我看到即使提到"_express-checkout-mobile",它也会强制加载到网络上

my app supports paypal payment and I use mobile express payout and now I see that it force loads to web even when I mention "_express-checkout-mobile"

https ://www.sandbox.paypal.com/cgi-bin/webscr?cmd = _express-checkout-mobile& useraction = commit& token = EC- * ** * ***

https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile&useraction=commit&token=EC-*******

推荐答案

PayPal使用浏览器检测来决定是显示移动流还是显示桌面流.如果您在应用程序内部使用网络视图,则需要确保该网络视图正在HTTP请求中发送User-Agent标头,该标头将浏览器标识为移动浏览器.

PayPal uses browser detection to decide whether to show the mobile flow or the desktop flow. If you're using a webview inside of an app, you need to be sure that the webview is sending a User-Agent header in the HTTP request that identifies the browser as a mobile browser.

这篇关于贝宝移动快递重定向到网络,而不是移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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