CardException

class CardException : OloPayException

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

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

Create an instance of this class with the given message

CardException
Link copied to clipboard
fun CardException(throwable: Throwable, type: CardErrorType, declineCode: String?, charge: String?)

Create an instance of this class with the given throwable

Properties

charge
Link copied to clipboard
val charge: String?

The ID of the failed charge

declineCode
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)

type
Link copied to clipboard
val type: CardErrorType

The type of card error