CheckoutError
Last updated: 26 February, 2025
The Flow CheckoutError class is a sealed class that extends the standard Kotlin Exception class. There are four types as follows:
CheckoutError.IntegrationCheckoutError.RequestCheckoutError.PaymentMethodCheckoutError.Submit
Each type contains the following properties:
| Property | Type | Description |
|---|---|---|
|
| A human-readable description of the error. The description is subject to change. For example, to improve clarity. To ensure you catch errors correctly, reference the values returned by the |
|
| A code representing the error. To see how to resolve it, see Error codes. |
|
| Additional error properties. All error types provide the following properties in the
|
Integration errors are caused by an invalid use of the Flow for mobile SDK.
CheckoutError.Integration contain the following properties within the CheckoutErrorDetails.Integration object:
| Property | Type | Description |
|---|---|---|
|
| The unique identifier of the browser session that created the |
|
| The unique identifier of the payment session response. |
|
| The name of the payment method used for the payment, if applicable. |
Request errors are caused by network request failures.
CheckoutError.Request contain the following properties within the CheckoutErrorDetails.Request object:
| Property | Type | Description |
|---|---|---|
|
| The unique identifier of the browser session that created the FlowComponent. |
|
| The unique identifier of the provided payment session response. |
|
| The name of the payment method used for the payment, if applicable. |
|
| The unique identifier for the declined payment request. |
|
| Additional error codes returned from the network request. |
|
| The unique identifier for the network request. |
|
| The HTTP response status code for the network request. |
Payment method errors are caused by unexpected failures when integrating a payment method's client-side library.
CheckoutError.PaymentMethod contain the following properties within the CheckoutErrorDetails.PaymentMethod object:
| Property | Type | Description |
|---|---|---|
|
| The unique identifier of the browser session that created the |
|
| The unique identifier of the provided payment session response. |
|
| The name of the payment method used for the payment, if applicable |
Submit errors are caused by invalid attempts to submit a payment request.
CheckoutError.Submit contain the following properties within the CheckoutErrorDetails.Submit object:
| Property | Type | Description |
|---|---|---|
|
| The unique identifier of the browser session that created the |
|
| The unique identifier of the provided payment session response. |
|
| The name of the payment method used for the payment, if applicable. |