paypal mobile express redirects to web instead of

2019-05-31 09:29发布

问题:

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-*******

回答1:

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.