GET_DEVICENAME
Last updated: 04-Dec-2024
This command retrieves the device name stored on the payment device.
Device UI Required: No
Request Packet
Field | Rule | Type | Minimum | Maximum | Value(s) | Description |
---|---|---|---|---|---|---|
FUNCTION_TYPE | Required | Static value | N/A | N/A | DEVICE | Type of function. |
COMMAND | Required | Static value | N/A | N/A | GET_DEVICENAME | Command name |
POS_RECON | Optional | Character | 1 | 30 | POS reconciliation. POS Reconciliation field to be echoed back in response to POS. Example: RetailPOS1 | |
COUNTER | Required | Numeric | 1 | 10 | COUNTER is used for a given MAC label. Each COUNTER should be higher than the last one. This is used to authenticate the POS. Example: 100 | |
MAC | Required | Base64 Encoded Data | N/A | N/A | N/A | Message Authentication Code. This is used to authenticate the POS. |
MAC_LABEL | Required | Character | 1 | 50 | Associated label that tells the device which MAC_KEY to use to decrypt the value of MAC. This is used to authenticate the POS. Example: REG1 |
Example
Following is an example of request packet
<TRANSACTION>
<FUNCTION_TYPE>DEVICE</FUNCTION_TYPE>
<COMMAND>GET_DEVICENAME</COMMAND>
</TRANSACTION>
Response Packet
Field | Type | Value | Description |
---|---|---|---|
RESPONSE_TEXT | Character | Processor response text. Example: Operation SUCCESSFUL | |
RESULT | Character | This indicates the Result details. Example: OK | |
RESULT_CODE | Numeric | Expected result code: -1, 59006, 59040 | This indicates the result code. Refer to Result/Error Codes for details. |
TERMINATION_STATUS | Character | SUCCESS or FAILURE | This indicates the transaction termination status. This is the overall status of the transaction irrespective of approved or declined. Like, if the output is generated then the status is SUCCESS and if no output is generated then the status will be FAILURE. |
DEVICENAME | Character | Device name stored on the payment device. May be null if no device name was set up at network configuration. Example: LANE1 | |
POS_RECON | Character | POS reconciliation field echoed back if sent in request. Example: RetailPOS1 | |
MAC_LABELS | List | List of MAC labels. Example: P_29K19J|P_48HDYL|P_6GQCE5|P_6JP4D7|P_7528ZO|P_7WO2PW|P_89G499|P_9BGLEO|P_FEZ2AP|P_GLZOFA|P_IJAJ6Z|P_LZIY1G|P_RD8FDD|P_XO95BS|P_Y3V1Q0|P_Z7I2IJ | |
COUNTER | Numeric | Echoes counter sent in the request. Example: 100 |
Example
Following is an example of response packet
<RESPONSE>
<RESPONSE_TEXT>Operation SUCCESSFUL</RESPONSE_TEXT>
<RESULT>OK</RESULT>
<RESULT_CODE>-1</RESULT_CODE>
<TERMINATION_STATUS>SUCCESS</TERMINATION_STATUS>
<DEVICENAME>POINTSCA</DEVICENAME>
<MAC_LABELS>P_29K19J|P_48HDYL|P_6GQCE5|P_6JP4D7|P_7528ZO|P_7WO2PW|P_89G499|P_9BGLEO|P_FEZ2AP|P_GLZOFA|P_IJAJ6Z|P_LZIY1G|P_RD8FDD|P_XO95BS|P_Y3V1Q0|P_Z7I2IJ</MAC_LABELS>
<COUNTER>26</COUNTER>
</RESPONSE>
Rate this article: