Error

public enum Error : Swift.Error, LocalizedError

Describes the error that can occur during card encryption and public key fetching.

  • Indicates encryption failed because of invalid card public key or for some other unknown reason.

    Declaration

    Swift

    case encryptionFailed
  • Indicates an error when trying to encrypt a card with card number, securityCode, expiryMonth, expiryYear are nil.

    Declaration

    Swift

    case invalidCard
  • Indicates an error when trying to encrypt empty or invalid BIN number.

    Declaration

    Swift

    case invalidBin
  • Indicates an error when trying to encrypt empty or invalid expiry year.

    Declaration

    Swift

    case invalidExpiryYear
  • Indicates an error when trying to encrypt empty or invalid expiry year.

    Declaration

    Swift

    case invalidExpiryMonth
  • Indicates an error when trying to encrypt empty or invalid expiry year.

    Declaration

    Swift

    case invalidSecureCode
  • Indicates an error when trying to encrypt empty or invalid expiry year.

    Declaration

    Swift

    case invalidNumber
  • Indicates an error when trying to encrypt empty value.

    Declaration

    Swift

    case emptyValue
  • Declaration

    Swift

    public var errorDescription: String? { get }