Error

data class Error : StripeModel

The error encountered in the previous SetupIntent confirmation.

See last_setup_error.

Types

Link copied to clipboard
enum Type : Enum<SetupIntent.Error.Type>

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val code: String?

For some errors that could be handled programmatically, a short string indicating the error code reported.

Link copied to clipboard
val declineCode: String?

For card errors resulting from a card issuer decline, a short string indicating the card issuer’s reason for the decline if they provide one.

Link copied to clipboard
val docUrl: String?

A URL to more information about the error code reported.

Link copied to clipboard
val message: String?

A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.

Link copied to clipboard
val param: String?

If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.

Link copied to clipboard
val paymentMethod: PaymentMethod?

The PaymentMethod object for errors returned on a request involving a PaymentMethod.

Link copied to clipboard
val type: SetupIntent.Error.Type?

The type of error returned.