CheckoutError
Last updated: July 23, 2025
The Flow CheckoutError class extends the standard JavaScript Error class and 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, you must reference the values returned by the |
|
| The error class name. This will always return |
|
| The type of error encountered, as one of the following values: |
|
| A code representing the error. For more information on how to resolve the errors, see Error codes. |
|
| Additional error properties. All error types provide the following properties in the
Errors of type |
Integration errors are caused by an invalid use of the Flow Components library.
Errors of type Integration contain the following properties within the details 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. |
|
| The Element selector or DOM object that caused the mounting error. This property is only returned for errors with an |
Payment method errors are caused by unexpected failures when integrating a payment method's client-side library.
Errors of type PaymentMethod contain the following properties within the details 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. |
Request errors are caused by network request failures.
Errors of type Request contain the following properties within the details 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. |
|
| The unique identifier for the declined payment request. |
| Array of | Additional error codes returned from the network request. |
|
| The unique identifier for the network request. |
|
| The HTTP response status code for the network request. |
Submit errors are caused by invalid attempts to submit a payment request. For example, if you call the submit() method before the customer has completed all of the required input fields.
Errors of type Submit contain the following properties within the details 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. |
Validation errors are caused by invalid fields or values in the updateDetails passed to the CheckoutWebComponents.update() method.
Errors of type Validation contain the following properties within the details 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. |
|
| Describes the error for each |