Functions

Link copied to clipboard
open fun get(activity: ComponentActivity, checkoutSession: CheckoutSession, storedPaymentMethod: StoredPaymentMethod, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
open fun get(fragment: Fragment, checkoutSession: CheckoutSession, storedPaymentMethod: StoredPaymentMethod, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
open fun get(activity: ComponentActivity, checkoutSession: CheckoutSession, storedPaymentMethod: StoredPaymentMethod, configuration: ConfigurationT, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
open fun get(activity: ComponentActivity, checkoutSession: CheckoutSession, storedPaymentMethod: StoredPaymentMethod, checkoutConfiguration: CheckoutConfiguration, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
open fun get(fragment: Fragment, checkoutSession: CheckoutSession, storedPaymentMethod: StoredPaymentMethod, configuration: ConfigurationT, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
open fun get(fragment: Fragment, checkoutSession: CheckoutSession, storedPaymentMethod: StoredPaymentMethod, checkoutConfiguration: CheckoutConfiguration, componentCallback: ComponentCallbackT, key: String? = null): ComponentT
abstract fun get(savedStateRegistryOwner: SavedStateRegistryOwner, viewModelStoreOwner: ViewModelStoreOwner, lifecycleOwner: LifecycleOwner, checkoutSession: CheckoutSession, storedPaymentMethod: StoredPaymentMethod, configuration: ConfigurationT, application: Application, componentCallback: ComponentCallbackT, key: String?): ComponentT
abstract fun get(savedStateRegistryOwner: SavedStateRegistryOwner, viewModelStoreOwner: ViewModelStoreOwner, lifecycleOwner: LifecycleOwner, checkoutSession: CheckoutSession, storedPaymentMethod: StoredPaymentMethod, checkoutConfiguration: CheckoutConfiguration, application: Application, componentCallback: ComponentCallbackT, key: String?): ComponentT

Get a PaymentComponent with a stored payment method and 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.