CardException

An Exception indicating that there is a problem with the card used for the request. Card errors are the most common type of error that need to be handled. They occur when the user enters a card that can't be charged for some reason.

Constructors

Link copied to clipboard
constructor(message: String?, type: CardErrorType, declineCode: String?, charge: String?)

Create an instance of this class with the given message

constructor(throwable: Throwable, type: CardErrorType, declineCode: String?, charge: String?)

Create an instance of this class with the given throwable

Properties

Link copied to clipboard

The ID of the failed charge

Link copied to clipboard

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

The type of card error