Package-level declarations

Types

Link copied to clipboard
data class CheckoutSession(val sessionSetupResponse: SessionSetupResponse, val order: Order?, val environment: Environment, val clientKey: String)

A class holding the data required to launch Drop-in or a component with the sessions flow. Use CheckoutSessionProvider.createSession to create this class.

Link copied to clipboard
Link copied to clipboard

The result of the API call to fetch a CheckoutSession.

Link copied to clipboard

Implement this callback to interact with a PaymentComponent initialized with a session.

Link copied to clipboard
data class SessionModel(val id: String, val sessionData: String?) : ModelObject

Object that parses and holds the response data from the /sessions endpoint. Use PaymentMethodsApiResponse.SERIALIZER to deserialize this class from your JSON response.

Link copied to clipboard
data class SessionPaymentResult(val sessionId: String?, val sessionResult: String?, val sessionData: String?, val resultCode: String?, val order: OrderResponse?) : Parcelable

The result of a payment using the sessions flow.

Link copied to clipboard
data class SessionSetupConfiguration(val enableStoreDetails: Boolean? = null, val showInstallmentAmount: Boolean = false, val installmentOptions: Map<String, SessionSetupInstallmentOptions?>? = null, val showRemovePaymentMethodButton: Boolean? = null) : ModelObject
Link copied to clipboard
data class SessionSetupInstallmentOptions(val plans: List<String>?, val preselectedValue: Int?, val values: List<Int>?) : ModelObject
Link copied to clipboard
data class SessionSetupResponse(val id: String, val sessionData: String, val amount: Amount?, val expiresAt: String, val paymentMethodsApiResponse: PaymentMethodsApiResponse?, val returnUrl: String?, val configuration: SessionSetupConfiguration?, val shopperLocale: String?) : ModelObject