ApiErrorType

enum ApiErrorType : Enum<ApiErrorType>

An enum detailing what type of error is being returned

For more information, see the official Stripe docs: Error types

Entries

Link copied to clipboard
@Json(name = "rate_limit_error")
RATE_LIMIT_ERROR()

Too many requests hit the API too quickly.

Link copied to clipboard
@Json(name = "invalid_request_error")
INVALID_REQUEST_ERROR()

Invalid request errors arise when your request has invalid parameters.

Link copied to clipboard
@Json(name = "idempotency_error")
IDEMPOTENCY_ERROR()

Idempotency errors occur when an Idempotency-Key is re-used on a request that does not match the first request's API endpoint and parameters.

Link copied to clipboard
@Json(name = "card_error")
CARD_ERROR()

Card errors are the most common type of error you should expect to handle. They result when the user enters a card that can't be charged for some reason.

Link copied to clipboard
@Json(name = "authentication_error")
AUTHENTICATION_ERROR()

Failure to properly authenticate yourself in the request.

Link copied to clipboard
@Json(name = "api_error")
API_ERROR()

API errors cover any other type of problem (e.g., a temporary problem with Stripe's servers), and are extremely uncommon.

Link copied to clipboard
@Json(name = "api_connection_error")
API_CONNECTION_ERROR()

Failure to connect to Stripe's API.

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int