Android Stripe Connect WebView - Create Account Form NOT loading

喜欢而已 提交于 2021-02-05 12:04:40

问题


As is known, there is no Stripe Connect feature for Android unfortunately so I'm following a somewhat known workaround using a webview like this one and this one. I'm trying to get my Webview for Stripe Connect to work however the form to fill out for creating a Stripe Connect Account doesn't load, only the top portion does. See snippet#1. However, if I open up my chrome browser on my android emulator, the entire form loads(form inside red box). See snippet#2

I have javascript enabled but it still doesn't load. See the code above snippets.

When I go to the URL on my computer and inspect, it loads normally, however, the account form loads after the URL it seems? I am not so familiar with React but I think it has something to do with that.

URL https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_7O1mjnCTpkFRmHoS3B1awsXMEAdSrB6U&scope=read_write&stripe_user[business_type]=individual#

What I'm using: Android Firebase-Firestore Firebase Cloud Functions Stripe

Any and all help is appreciated.

Code In Webview Activity

val addPaymentSourceWebView = findViewById<WebView>(R.id.add_payment_source_Webview);
val paymentWebViewSettings = addPaymentSourceWebView.settings
addPaymentSourceWebView.webViewClient
addPaymentSourceWebView.isVerticalScrollBarEnabled
addPaymentSourceWebView.isHorizontalScrollBarEnabled
addPaymentSourceWebView.webChromeClient
addPaymentSourceWebView.settings.javaScriptEnabled
addPaymentSourceWebView.settings.javaScriptCanOpenWindowsAutomatically

addPaymentSourceWebView.settings.domStorageEnabled
addPaymentSourceWebView.settings.allowFileAccess
addPaymentSourceWebView.settings.allowContentAccess
addPaymentSourceWebView.settings.setAppCacheEnabled(true)
addPaymentSourceWebView.settings.databaseEnabled
addPaymentSourceWebView.settings.mixedContentMode
addPaymentSourceWebView.settings.loadWithOverviewMode
addPaymentSourceWebView.settings.useWideViewPort
addPaymentSourceWebView.settings.allowFileAccessFromFileURLs
addPaymentSourceWebView.settings.allowFileAccessFromFileURLs


addPaymentSourceWebView.loadUrl("https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_7O1mjnCTpkFRmHoS3B1awsXMEAdSrB6U&scope=read_write&stripe_user[business_type]=individual#")

Snippet#1

Snippet#2

来源:https://stackoverflow.com/questions/60200609/android-stripe-connect-webview-create-account-form-not-loading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!