Contents

transceive(_:)

Send a wired command Application Protocol Data Unit (APDU) to the credential to complete a transaction or a card content management task.

Declaration

func transceive(_ data: Data) async throws -> Data

Parameters

  • data:

    The APDU as a Data instance.

Mentioned in

Return Value

A response APDU.

Discussion

Before calling this method, make sure the credential session state is CredentialSession.State.wired(credential:). The state transitions to CredentialSession.State.management if the call encounters a CredentialSession.ErrorCode.resourceUnavailable error; otherwise the state remains unchanged.

Use this method to perform the web presentment transaction after calling performWiredTransaction(using:over:instanceAID:).

See Also

Performing wired mode actions