Event
public enum Event : Sendable
Events produced during contactless payment session.
-
The session requires authentication. Use
AuthenticateActionto proceed (immediately start the biometric authentication) or cancel the session.Declaration
Swift
case authenticationRequired(_: AuthenticateAction) -
The authentication is success. After this event, if device is near POS,
posConnectedwill be sent by SDK.Declaration
Swift
case authenticationCompleted -
The device is tapped to POS reader.
Declaration
Swift
case posConnected -
The device is disconnected from POS reader while the transaction is still ongoing. Application should notify user to tap the device back to POS reader.
Declaration
Swift
case posDisconnected -
The transaction has completed. Refer to
TransactionContextfor more transaction details.Declaration
Swift
case transactionCompleted(_: TransactionContext) -
The session encounter non-retriable errors.
Possible errors:
cancelledmaxSessionDurationReached- “ContactlessPaymentSession/Error/nfcPermissionNotAccepted
systemEligibilityFailedkeychainError(_:)noDefaultCardnoPaymentKeysapduFailure(_:)transmissionErrorsessionInvalidatedunknown(_:)deviceEnvironmentUnsafe(_:)setDefaultCardFailureinvalidDigitalCardIDauthenticationExpiredposNotSupportedcardNotSupportedcardNotActive
Declaration
Swift
case errorEncountered(_: Error)
Event Enumeration Reference