Skip to main content
The displaySwipeCard method prompts the user to swipe a magnetic card using the terminalโ€™s MSR (Magnetic Stripe Reader). You can customize the messages shown on the display. This method returns the Track 2 data of the card once it has been read.

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.
To invoke this method, set the method field to displaySwipeCard, and include the service name and parameters as shown below.

Request Parameters

The table below describes the parameters of the request:

Response

A successful request will return the following response:

Response Parameters

The table below describes the response parameters for this method: