endPinpadTransaction method is used to terminate the PinPad mode session on the payment terminal. This is the final step in the card/PIN capture process and should be called regardless of whether the transaction was successful, cancelled, or failed the PinPad steps. Successfully ending the session ensures the terminal is reset and ready for the next operation.
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 toendPinpadTransaction. - The
servicemust be set toenginein the params.
Response
A successful response indicates that the PinPad mode on the terminal has been successfully exited and the device has returned to its idle state.Response Parameters
Below is a table with all the possible response parameters and their description:| Name | Type | Description |
|---|---|---|
statusCode | integer | The status of the command. A value of 0 indicates the terminal successfully ended the PinPad session. |
statusMessage | string | The message confirming the status (e.g., ok). |