Error

public enum Error : Swift.Error, LocalizedError

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

  • Indicates an unknown error occurred.

    Declaration

    Swift

    case unknown
  • 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, and holderName, all of them are nil.

    Declaration

    Swift

    case invalidEncryptionArguments
  • Declaration

    Swift

    public var errorDescription: String? { get }