Feature module
Architecture
WebCheckoutActivity
is the entry point to the WebCheckout screen.WebCheckoutFragment
createsWebCheckoutView
.WebCheckoutView
controls the visibility of the elements in the screen. It also initialisesWebCheckoutViewModel
.WebCheckoutWebViewController
controls the WebView: injecting the Cookies, CSS, Javascript, and setting the Javascript bridge.- WebViewLayout is the View that displays the WebView.
WebCheckoutViewModel
is the main ViewModel that coordinates the rest of the ViewModels.GetWebCheckoutViewModel
executesGetWebCheckout
interactor and exposesWebCheckout
model.WebCheckoutEventsViewModel
handles the events from theJavascriptBridgeInterface
bridge and executesCompleteWebCheckout
interactor.JavascriptBridgeInterface
is 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 |