get

open fun get(fragment: Fragment, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, checkoutConfiguration: CheckoutConfiguration, componentCallback: ComponentCallbackT, key: String? = null): ComponentT

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.

Return

The Component

Parameters

fragment

The Fragment to associate the lifecycle.

checkoutSession

The CheckoutSession object to launch this component.

paymentMethod

The corresponding PaymentMethod object.

checkoutConfiguration
componentCallback

The callback to handle events from the PaymentComponent.

key

The key to use to identify the PaymentComponent.

NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.


open fun get(fragment: Fragment, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, componentCallback: ComponentCallbackT, key: String? = null): ComponentT

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.

Return

The Component

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.

NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.


open fun get(activity: ComponentActivity, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, checkoutConfiguration: CheckoutConfiguration, componentCallback: ComponentCallbackT, key: String? = null): ComponentT

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.

Return

The Component

Parameters

activity

The Activity to associate the lifecycle.

checkoutSession

The CheckoutSession object to launch this component.

paymentMethod

The corresponding PaymentMethod object.

checkoutConfiguration
componentCallback

The callback to handle events from the PaymentComponent.

key

The key to use to identify the PaymentComponent.

NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.


open fun get(activity: ComponentActivity, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, componentCallback: ComponentCallbackT, key: String? = null): ComponentT

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.

Return

The Component

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.

NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.


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

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.

Return

The Component

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
application

Your main application class.

componentCallback

The callback to handle events from the PaymentComponent.

key

The key to use to identify the PaymentComponent.

NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.


open fun get(fragment: Fragment, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, configuration: ConfigurationT, componentCallback: ComponentCallbackT, key: String? = null): ComponentT

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.

Return

The Component

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.

NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.


open fun get(activity: ComponentActivity, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, configuration: ConfigurationT, componentCallback: ComponentCallbackT, key: String? = null): ComponentT

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.

Return

The Component

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.

NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.


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

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.

Return

The Component

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.

NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.