startPinpadTransaction method initiates the PinPad process on the payment terminal, instructing it to get ready to receive card information via Magnetic Stripe Read (MSR) or Contactless (Tap) or Contact. In case of Contact transaction- the transaction would proceed to doPinPadTransaction, otherwise will not- more on that in Pinpad Mode.The response will provide the method of payment used through the
panEntryMode parameter.
This method captures raw card data (Track 2 or EMV tags) from the physical device, preparing the system for subsequent authorization steps.
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.
- The
methodfield must be set tostartPinpadTransaction. - The service must be set to
enginein theparams.
engine, and the second being a dictionary containing all other transaction-specific details.
Request Parameters
The table below describes the parameters of the request:| Name | Type | Description |
|---|---|---|
vuid | string | Vendor (client) unique transaction identifier. |
amount | integer | Amount of the transaction in cents. |
tranType | float | Transaction type code. For example, 1 for a standard transaction. |
Response
A successful request will return a response containing the captured card data, which varies depending on whether the card was read via magnetic stripe or contactless (EMV).Magnetic Stripe Read Response
This response is returned when the card is successfully swiped via the magnetic stripe reader.Response Parameters
The table below describes the response parameters for this method when a Magnetic Stripe Read occurs.| Name | Type | Description |
|---|---|---|
statusCode | integer | The PinPad transaction status. A value of 0 indicates success. |
statusMessage | string | The transaction message (e.g., ok). |
panEntryMode | integer | POS Entry Mode, indicating the method of card entry.
|
track2 | string | The raw Track 2 card data captured from the magnetic stripe. |
Contactless Read Response
This response is returned when the card is successfully read via the contactless reader.Response Parameters
The table below describes the response parameters for this method when a Contactless Read occurs.| Name | Type | Description |
|---|---|---|
statusCode | integer | The PinPad transaction status. A value of 0 indicates success. |
statusMessage | string | The transaction message (e.g., ok). |
panEntryMode | integer | POS Entry Mode, indicating the method of card entry.
|
tags | json of strings | A dictionary containing raw EMV Tag-Value pairs captured from the contactless chip. |