Instance Method

getToken()

Refreshes the card reader token used for Tap to Pay functionality.

Declaration

func getToken() async throws -> PaymentCardReader.Token

Return Value

A valid PaymentCardReader.Token object for use with the reader session.

Discussion

This method retrieves a new token from Koard’s backend to enable Tap to Pay capabilities using Apple’s Proximity Reader APIs. It is required before initiating reader sessions and should be called during setup or when the current token expires.