Interface SessionPaymentComponentProvider

    • Constructor Detail

    • Method Detail

      • get

         ComponentT get(Fragment fragment, CheckoutSession checkoutSession, PaymentMethod paymentMethod, CheckoutConfiguration checkoutConfiguration, ComponentCallbackT componentCallback, String key)

        Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.

        Parameters:
        fragment - The Fragment to associate the lifecycle.
        checkoutSession - The CheckoutSession object to launch this component.
        paymentMethod - The corresponding PaymentMethod object.
        checkoutConfiguration - The CheckoutConfiguration.
        componentCallback - The callback to handle events from the PaymentComponent.
        key - The key to use to identify the PaymentComponent.
        Returns:

        The Component

      • get

         ComponentT get(Fragment fragment, CheckoutSession checkoutSession, PaymentMethod paymentMethod, ComponentCallbackT componentCallback, String key)

        Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.

        Parameters:
        fragment - The Fragment to associate the lifecycle.
        checkoutSession - The CheckoutSession object to launch this component.
        paymentMethod - The corresponding PaymentMethod object.
        componentCallback - The callback to handle events from the PaymentComponent.
        key - The key to use to identify the PaymentComponent.
        Returns:

        The Component

      • get

         ComponentT get(ComponentActivity activity, CheckoutSession checkoutSession, PaymentMethod paymentMethod, CheckoutConfiguration checkoutConfiguration, ComponentCallbackT componentCallback, String key)

        Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.

        Parameters:
        activity - The Activity to associate the lifecycle.
        checkoutSession - The CheckoutSession object to launch this component.
        paymentMethod - The corresponding PaymentMethod object.
        checkoutConfiguration - The CheckoutConfiguration.
        componentCallback - The callback to handle events from the PaymentComponent.
        key - The key to use to identify the PaymentComponent.
        Returns:

        The Component

      • get

         ComponentT get(ComponentActivity activity, CheckoutSession checkoutSession, PaymentMethod paymentMethod, ComponentCallbackT componentCallback, String key)

        Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.

        Parameters:
        activity - The Activity to associate the lifecycle.
        checkoutSession - The CheckoutSession object to launch this component.
        paymentMethod - The corresponding PaymentMethod object.
        componentCallback - The callback to handle events from the PaymentComponent.
        key - The key to use to identify the PaymentComponent.
        Returns:

        The Component

      • get

         abstract ComponentT get(SavedStateRegistryOwner savedStateRegistryOwner, ViewModelStoreOwner viewModelStoreOwner, LifecycleOwner lifecycleOwner, CheckoutSession checkoutSession, PaymentMethod paymentMethod, CheckoutConfiguration checkoutConfiguration, Application application, ComponentCallbackT componentCallback, String key)

        Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.

        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.
        checkoutSession - The CheckoutSession object to launch this component.
        paymentMethod - The corresponding PaymentMethod object.
        checkoutConfiguration - The CheckoutConfiguration.
        application - Your main application class.
        componentCallback - The callback to handle events from the PaymentComponent.
        key - The key to use to identify the PaymentComponent.
        Returns:

        The Component

      • get

         ComponentT get(Fragment fragment, CheckoutSession checkoutSession, PaymentMethod paymentMethod, ConfigurationT configuration, ComponentCallbackT componentCallback, String key)

        Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.

        Parameters:
        fragment - The Fragment to associate the lifecycle.
        checkoutSession - The CheckoutSession object to launch this component.
        paymentMethod - The corresponding PaymentMethod object.
        configuration - The Configuration of the component.
        componentCallback - The callback to handle events from the PaymentComponent.
        key - The key to use to identify the PaymentComponent.
        Returns:

        The Component

      • get

         ComponentT get(ComponentActivity activity, CheckoutSession checkoutSession, PaymentMethod paymentMethod, ConfigurationT configuration, ComponentCallbackT componentCallback, String key)

        Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.

        Parameters:
        activity - The Activity to associate the lifecycle.
        checkoutSession - The CheckoutSession object to launch this component.
        paymentMethod - The corresponding PaymentMethod object.
        configuration - The Configuration of the component.
        componentCallback - The callback to handle events from the PaymentComponent.
        key - The key to use to identify the PaymentComponent.
        Returns:

        The Component

      • get

         abstract ComponentT get(SavedStateRegistryOwner savedStateRegistryOwner, ViewModelStoreOwner viewModelStoreOwner, LifecycleOwner lifecycleOwner, CheckoutSession checkoutSession, PaymentMethod paymentMethod, ConfigurationT configuration, Application application, ComponentCallbackT componentCallback, String key)

        Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.

        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.
        checkoutSession - The CheckoutSession object to launch this component.
        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.
        key - The key to use to identify the PaymentComponent.
        Returns:

        The Component