I have a web address for the payment gateway (where I need to enter credit card number, etc.). Can I open this page using WebView and make a payment directly into my application? Without opening separate web client like chrome? Does google has any restrictions or security rule on the publication of application, where the user enter his credit/debit card information directly into WebView?
Android System WebView lets applications display browser windows in an app instead of transporting the user to another browser. Android developers use WebView when they want to display webpages in a Google app or other application.
The WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout. It does not include any features of a fully developed web browser, such as navigation controls or an address bar. All that WebView does, by default, is show a web page.
You can open your payment page in a WebView in Android without any restriction. I'm using this method in few apps, for few years now, and I didn't had any problem so far.
But on iOS, there are some restrictions. You can't sell digital goods from a WebView that can be used in the app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With