CheckoutSessionProvider
object CheckoutSessionProvider
Functions
Link copied to clipboard
suspend fun createSession(sessionPaymentResult: SessionPaymentResult, configuration: Configuration): CheckoutSessionResult
suspend fun createSession(sessionPaymentResult: SessionPaymentResult, environment: Environment, clientKey: String): CheckoutSessionResult
Only to be used for initializing a component for partial payment flow.
suspend fun createSession(sessionModel: SessionModel, configuration: Configuration, order: Order? = null): CheckoutSessionResult
suspend fun createSession(sessionModel: SessionModel, environment: Environment, clientKey: String, order: Order? = null): CheckoutSessionResult
Allows creating a CheckoutSession from the response of the /sessions endpoint. This is a suspend function that executes a network call on the IO thread.