Skip to main content
The readCard method reads data from a card using either the magnetic swipe reader (MSR) or the contactless NFC reader. It supports Mifare cards only for NFC. This method is commonly used in loyalty or identification scenarios. If the user cancels the operation or the request times out, it can be aborted using the abortReadCard method.

Request

JSON-RPC 2.0All methods in TweezerComm follow a JSON-RPC 2.0 structure. See Get Started for more details on how the requests are structured and sent.
In the request, the method field should be set to readCard the parameters should define the reader configuration and user interface messages.

Request Parameters

See the table below for a description of the available request parameters for this method. Mifare Object Parameters

Response

A successful request will return a response similar to the one in the code block below:

Response Parameters

Below is a table with all the possible response parameters and their description: