CardErrorType

An enum representing different types of card errors

Entries

Link copied to clipboard

The card number is invalid (empty, incorrect format, incomplete, etc)

Link copied to clipboard

The expiration month is invalid

Link copied to clipboard

The expiration year is invalid

Link copied to clipboard

The CVV is not valid (empty, incorrect format, incomplete, etc)

Link copied to clipboard

The postal code is invalid (empty, incorrect format, incomplete, etc).

Link copied to clipboard

The card is expired

Link copied to clipboard

The card was declined

Link copied to clipboard

An error occurred while processing the card

Link copied to clipboard

An unknown error occurred

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.