Error

public enum Error : Swift.Error

Errors encounterd for contactless payment session.

  • User cancelled the transaction.

    Declaration

    Swift

    case cancelled
  • The session has expired due to maximum duration reached.

    System allows 60 seconds per session.

    Declaration

    Swift

    case maxSessionDurationReached
  • Scheme not supported

    Declaration

    Swift

    case schemeNotSupported
  • Permission is not granted for NFC.

    Declaration

    Swift

    case nfcPermissionNotAccepted
  • The system is not eligible for contactless payment.

    Declaration

    Swift

    case systemEligibilityFailed
  • The error encountered in keychain operation.

    Declaration

    Swift

    case keychainError(_: Swift.Error)
  • No default card is defined.

    Declaration

    Swift

    case noDefaultCard
  • There is no payment keys for the card. Refer to ReplenishmentService to replenish the card.

    Declaration

    Swift

    case noPaymentKeys
  • Error encountered in APDU exchange between device and POS reader.

    Declaration

    Swift

    case apduFailure(_: String)
  • Error encountered in APDU exchange between device and POS reader.

    Transmission error. Please retry the payment by calling startPayment(withDigitalCardID:)

    Declaration

    Swift

    case transmissionError
  • The card session has been invalidated by system Example: when application goes into background.

    Declaration

    Swift

    case sessionInvalidated
  • Unknown error encountered during transaction.

    Refer to the underlying error for more details.

    Declaration

    Swift

    case unknown(_: Swift.Error)
  • Device Environment Unsafe error

    Declaration

    Swift

    case deviceEnvironmentUnsafe(_: Swift.Error)

    Parameters

    underlying

    Swift Error

  • Error encountered when attempting to set the provided Digital Card ID as the default card during startPayment(withDigitalCardID:) API call

    Declaration

    Swift

    case setDefaultCardFailure
  • Digital Card ID provided is invalid

    Declaration

    Swift

    case invalidDigitalCardID
  • Error encountered when payment made after validation of authentication

    Declaration

    Swift

    case authenticationExpired
  • Error encountered when POS do not have selected AID in the list

    Declaration

    Swift

    case posNotSupported
  • The card is not supported for Contactless Payment

    Declaration

    Swift

    case cardNotSupported
  • The card selected is not active MPA could do resume the card by calling manage(digitalCardID:action:)

    Declaration

    Swift

    case cardNotActive
  • Error encountered during authentication failure

    Since

    7.2.0

    Declaration

    Swift

    case authenticationFailed
  • Authentication key is invalidated because the device passcode is either turned off or reset, triggering a security reset. SDK will automatically wipe the stored credentials when this error occurs. App must guide user through the re-enrollment process. Post a notification to reload the card.

    Since

    7.2.0

    Declaration

    Swift

    case authenticationKeyInvalidated(_: Swift.Error)

    Parameters

    underlying

    Swift Error

  • Biometric authentication is not enrolled on device

    Since

    7.2.0

    Declaration

    Swift

    case biometricNotEnrolled(_: String)

    Parameters

    reason

    underlying error message