Feature module
Architecture
WebCheckoutActivityis the entry point to the WebCheckout screen.WebCheckoutFragmentcreatesWebCheckoutView.WebCheckoutViewcontrols the visibility of the elements in the screen. It also initialisesWebCheckoutViewModel.WebCheckoutWebViewControllercontrols the WebView: injecting the Cookies, CSS, Javascript, and setting the Javascript bridge.- WebViewLayout is the View that displays the WebView.
WebCheckoutViewModelis the main ViewModel that coordinates the rest of the ViewModels.GetWebCheckoutViewModelexecutesGetWebCheckoutinteractor and exposesWebCheckoutmodel.WebCheckoutEventsViewModelhandles the events from theJavascriptBridgeInterfacebridge and executesCompleteWebCheckoutinteractor.JavascriptBridgeInterfaceis the interface that the web page calls.
Views Breakdown
| View | XML | Alias |
|---|---|---|
| WebCheckoutActivity | activity_webcheckout.xml | - |
| WebCheckoutFragment | fragment_webcheckout.xml | - |
| WebCheckoutView | web_checkout_modular_view.xml | webCheckoutViewLayout |