1

I was trying to test if it is possible to integrate stripe js in a website and load that site in an android Webview to proceed for payment. I was using this link https://github.com/stripe/elements-examples to load that in Webview like this:

WebView browser = (WebView) findViewById(R.id.webview);
browser.loadUrl("https://stripe.github.io/elements-examples/");

Everything is loading in the Webview except the credit card field is not there. Either it is not visible or it can not be editable. Why is that?

Paul Chu
  • 1,249
  • 3
  • 19
  • 27
Istiak Morsalin
  • 10,621
  • 9
  • 33
  • 65

1 Answers1

0

Try to add below code to enable Javascript in your Webview:

WebSettings webSettings = browser.getSettings();
webSettings.setJavaScriptEnabled(true);
Paul Chu
  • 1,249
  • 3
  • 19
  • 27