V - the type of the payment form which is created.public interface PaymentFormViewFactory<V extends android.view.View & PaymentFormView>
The payment form contains the input fields for collecting the payment details. Typically this
is a WebView with a form loaded from the remote server.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PaymentFormViewFactory.UrlFetcher
The URL fetcher is responsible for loading the
MobileSdkUrl which is used to load the
payment form. |
| Modifier and Type | Method and Description |
|---|---|
V |
build(android.view.ViewGroup parent,
PaymentFormView.Listener listener,
long selectedPaymentMethodConfigurationId,
PaymentFormViewFactory.UrlFetcher urlFetcher)
This method is responsible to create the view for handling the payment input.
|
V build(android.view.ViewGroup parent, PaymentFormView.Listener listener, long selectedPaymentMethodConfigurationId, PaymentFormViewFactory.UrlFetcher urlFetcher)
The implementor does not need to add the created view into the parent. This is done by the caller of the method.
parent - the parent view into which the form is integrated
into.listener - the listener which is informed about state
changes within the view.selectedPaymentMethodConfigurationId - the payment method for which the form should be
created for.urlFetcher - the URL fetcher is responsible to load the SDK
URL from which the form is loaded.