SessionPaymentComponentProvider
Functions
Link copied to clipboard
open fun get(activity: ComponentActivity, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
open fun get(fragment: Fragment, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
open fun get(activity: ComponentActivity, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, configuration: ConfigurationT, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
open fun get(activity: ComponentActivity, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, checkoutConfiguration: CheckoutConfiguration, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
open fun get(fragment: Fragment, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, configuration: ConfigurationT, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
open fun get(fragment: Fragment, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, checkoutConfiguration: CheckoutConfiguration, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
abstract fun get(savedStateRegistryOwner: SavedStateRegistryOwner, viewModelStoreOwner: ViewModelStoreOwner, lifecycleOwner: LifecycleOwner, checkoutSession: CheckoutSession, paymentMethod: PaymentMethod, configuration: ConfigurationT, application: Application, componentCallback: ComponentCallbackT, key: String?): ComponentT
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.