Stripe checkout not working in android webview

前端 未结 5 1946
太阳男子
太阳男子 2021-01-17 23:04

I am working on android application. The server on which I am working gives the subscription feature to the users, so users need to do payment to become a member on the webs

5条回答
  •  滥情空心
    2021-01-18 00:02

    Stripe checkout indeed does not work on Android WebViews, but it does work on iOS UIWebView... So... UserAgent comes to rescue!

    webView.getSettings().setUserAgentString("Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E233 Safari/601.1");
    

提交回复
热议问题