Interface StoredPaymentComponentProvider
-
- All Implemented Interfaces:
public interface StoredPaymentComponentProvider<ComponentT extends PaymentComponent, ConfigurationT extends Configuration, ComponentStateT extends PaymentComponentState<?>, ComponentCallbackT extends ComponentCallback<ComponentStateT>>
-
-
Method Summary
Modifier and Type Method Description ComponentTget(Fragment fragment, StoredPaymentMethod storedPaymentMethod, CheckoutConfiguration checkoutConfiguration, ComponentCallbackT callback, OrderRequest order, String key)Get a PaymentComponent with a stored payment method. ComponentTget(ComponentActivity activity, StoredPaymentMethod storedPaymentMethod, CheckoutConfiguration checkoutConfiguration, ComponentCallbackT callback, OrderRequest order, String key)Get a PaymentComponent with a stored payment method. abstract ComponentTget(SavedStateRegistryOwner savedStateRegistryOwner, ViewModelStoreOwner viewModelStoreOwner, LifecycleOwner lifecycleOwner, StoredPaymentMethod storedPaymentMethod, CheckoutConfiguration checkoutConfiguration, Application application, ComponentCallbackT componentCallback, OrderRequest order, String key)Get a PaymentComponent with a stored payment method. ComponentTget(Fragment fragment, StoredPaymentMethod storedPaymentMethod, ConfigurationT configuration, ComponentCallbackT callback, OrderRequest order, String key)Get a PaymentComponent with a stored payment method. ComponentTget(ComponentActivity activity, StoredPaymentMethod storedPaymentMethod, ConfigurationT configuration, ComponentCallbackT callback, OrderRequest order, String key)Get a PaymentComponent with a stored payment method. abstract ComponentTget(SavedStateRegistryOwner savedStateRegistryOwner, ViewModelStoreOwner viewModelStoreOwner, LifecycleOwner lifecycleOwner, StoredPaymentMethod storedPaymentMethod, ConfigurationT configuration, Application application, ComponentCallbackT componentCallback, OrderRequest order, String key)Get a PaymentComponent with a stored payment method. abstract BooleanisPaymentMethodSupported(StoredPaymentMethod storedPaymentMethod)Checks if the provided component can handle a given stored payment method. -
-
Method Detail
-
get
ComponentT get(Fragment fragment, StoredPaymentMethod storedPaymentMethod, CheckoutConfiguration checkoutConfiguration, ComponentCallbackT callback, OrderRequest order, String key)
Get a PaymentComponent with a stored payment method.
- Parameters:
fragment- The Fragment to associate the lifecycle.storedPaymentMethod- The corresponding StoredPaymentMethod 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, StoredPaymentMethod storedPaymentMethod, CheckoutConfiguration checkoutConfiguration, ComponentCallbackT callback, OrderRequest order, String key)
Get a PaymentComponent with a stored payment method.
- Parameters:
activity- The Activity to associate the lifecycle.storedPaymentMethod- The corresponding StoredPaymentMethod 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, StoredPaymentMethod storedPaymentMethod, CheckoutConfiguration checkoutConfiguration, Application application, ComponentCallbackT componentCallback, OrderRequest order, String key)
Get a PaymentComponent with a stored payment method.
- 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.storedPaymentMethod- The corresponding StoredPaymentMethod 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, StoredPaymentMethod storedPaymentMethod, ConfigurationT configuration, ComponentCallbackT callback, OrderRequest order, String key)
Get a PaymentComponent with a stored payment method.
- Parameters:
fragment- The Fragment to associate the lifecycle.storedPaymentMethod- The corresponding StoredPaymentMethod 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, StoredPaymentMethod storedPaymentMethod, ConfigurationT configuration, ComponentCallbackT callback, OrderRequest order, String key)
Get a PaymentComponent with a stored payment method.
- Parameters:
activity- The Activity to associate the lifecycle.storedPaymentMethod- The corresponding StoredPaymentMethod 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, StoredPaymentMethod storedPaymentMethod, ConfigurationT configuration, Application application, ComponentCallbackT componentCallback, OrderRequest order, String key)
Get a PaymentComponent with a stored payment method.
- 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.storedPaymentMethod- The corresponding StoredPaymentMethod 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(StoredPaymentMethod storedPaymentMethod)
Checks if the provided component can handle a given stored payment method.
-
-
-
-