Interface PaymentComponentProvider
-
- All Implemented Interfaces:
-
com.adyen.checkout.components.core.internal.provider.ComponentProvider
public interface PaymentComponentProvider<ComponentT extends PaymentComponent, ConfigurationT extends Configuration, ComponentStateT extends PaymentComponentState<?>, ComponentCallbackT extends ComponentCallback<ComponentStateT>> implements ComponentProvider<ComponentT>
-
-
Method Summary
-
-
Method Detail
-
get
ComponentT get(Fragment fragment, PaymentMethod paymentMethod, CheckoutConfiguration checkoutConfiguration, ComponentCallbackT callback, OrderRequest order, String key)
Get a PaymentComponent.
- Parameters:
fragment- The Fragment to associate the lifecycle.paymentMethod- The corresponding PaymentMethod object.checkoutConfiguration- The CheckoutConfiguration.callback- The callback to handle events from the PaymentComponent.order- An Order in case of an ongoing partial payment flow.key- The key to use to identify the PaymentComponent.- Returns:
The Component
-
get
ComponentT get(ComponentActivity activity, PaymentMethod paymentMethod, CheckoutConfiguration checkoutConfiguration, ComponentCallbackT callback, OrderRequest order, String key)
Get a PaymentComponent.
- Parameters:
activity- The Activity to associate the lifecycle.paymentMethod- The corresponding PaymentMethod object.checkoutConfiguration- The CheckoutConfiguration.callback- The callback to handle events from the PaymentComponent.order- An Order in case of an ongoing partial payment flow.key- The key to use to identify the PaymentComponent.- Returns:
The Component
-
get
abstract ComponentT get(SavedStateRegistryOwner savedStateRegistryOwner, ViewModelStoreOwner viewModelStoreOwner, LifecycleOwner lifecycleOwner, PaymentMethod paymentMethod, CheckoutConfiguration checkoutConfiguration, Application application, ComponentCallbackT componentCallback, OrderRequest order, String key)
Get a PaymentComponent.
- Parameters:
savedStateRegistryOwner- The owner of the SavedStateRegistry, normally an Activity or Fragment.viewModelStoreOwner- A scope that owns ViewModelStore, normally an Activity or Fragment.lifecycleOwner- The lifecycle owner, normally an Activity or Fragment.paymentMethod- The corresponding PaymentMethod object.checkoutConfiguration- The CheckoutConfiguration.application- Your main application class.componentCallback- The callback to handle events from the PaymentComponent.order- An Order in case of an ongoing partial payment flow.key- The key to use to identify the PaymentComponent.- Returns:
The Component
-
get
ComponentT get(Fragment fragment, PaymentMethod paymentMethod, ConfigurationT configuration, ComponentCallbackT callback, OrderRequest order, String key)
Get a PaymentComponent.
- Parameters:
fragment- The Fragment to associate the lifecycle.paymentMethod- The corresponding PaymentMethod object.configuration- The Configuration of the component.callback- The callback to handle events from the PaymentComponent.order- An Order in case of an ongoing partial payment flow.key- The key to use to identify the PaymentComponent.- Returns:
The Component
-
get
ComponentT get(ComponentActivity activity, PaymentMethod paymentMethod, ConfigurationT configuration, ComponentCallbackT callback, OrderRequest order, String key)
Get a PaymentComponent.
- Parameters:
activity- The Activity to associate the lifecycle.paymentMethod- The corresponding PaymentMethod object.configuration- The Configuration of the component.callback- The callback to handle events from the PaymentComponent.order- An Order in case of an ongoing partial payment flow.key- The key to use to identify the PaymentComponent.- Returns:
The Component
-
get
abstract ComponentT get(SavedStateRegistryOwner savedStateRegistryOwner, ViewModelStoreOwner viewModelStoreOwner, LifecycleOwner lifecycleOwner, PaymentMethod paymentMethod, ConfigurationT configuration, Application application, ComponentCallbackT componentCallback, OrderRequest order, String key)
Get a PaymentComponent.
- Parameters:
savedStateRegistryOwner- The owner of the SavedStateRegistry, normally an Activity or Fragment.viewModelStoreOwner- A scope that owns ViewModelStore, normally an Activity or Fragment.lifecycleOwner- The lifecycle owner, normally an Activity or Fragment.paymentMethod- The corresponding PaymentMethod object.configuration- The Configuration of the component.application- Your main application class.componentCallback- The callback to handle events from the PaymentComponent.order- An Order in case of an ongoing partial payment flow.key- The key to use to identify the PaymentComponent.- Returns:
The Component
-
isPaymentMethodSupported
abstract Boolean isPaymentMethodSupported(PaymentMethod paymentMethod)
Checks if the provided component can handle a given payment method.
-
-
-
-