public final class DefaultPaymentFormViewFactory extends java.lang.Object implements PaymentFormViewFactory<DefaultPaymentFormView>
PaymentFormViewFactory creates a DefaultPaymentFormView.
This factory should be overridden when a subclass of DefaultPaymentFormView should be
created.
PaymentFormViewFactory.UrlFetcher| Constructor and Description |
|---|
DefaultPaymentFormViewFactory() |
| Modifier and Type | Method and Description |
|---|---|
DefaultPaymentFormView |
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.
|
public DefaultPaymentFormView build(android.view.ViewGroup parent, PaymentFormView.Listener listener, long selectedPaymentMethodConfigurationId, PaymentFormViewFactory.UrlFetcher urlFetcher)
PaymentFormViewFactoryThe implementor does not need to add the created view into the parent. This is done by the caller of the method.
build in interface PaymentFormViewFactory<DefaultPaymentFormView>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.