Paycode Transaction Command
This is used to initiate a Paycode transaction on the POS terminal. The amount of goods purchase is to be sent along in the request as shown below. The transaction would be completed on the POS as the customer would be prompted to key in his / her Paycode and transaction would be sent upstream for approval and a response is returned.
Sample request
<request>
<command>purchase</command>
<amount>100</amount>
<accounttype>default</accounttype>
<paymentOption>paycode</paymentOption>
<staff>123S89</staff>
</request>
Response Message field description
This field will vary depending on the transaction:
Field | Field Name | Description |
---|---|---|
1 | Stan | Terminal serial counter |
2 | AuthCode | Transaction Authorization Code |
3 | RespMessage | Transaction Response Message |
4 | RespCode | Transaction Response Code |
5 | Amount | Transaction Amount |
6 | TerminalId | POS Terminal Id |
7 | Paycode | Paycode used for the transaction |
8 | Staff | Staff Id of the teller or cashier |
9 | Payment Option | The method used for Payment |
Sample Response (success)
The response for success: at least a port is returned
<transResponse>
<Stan>000003</Stan>
<AuthCode>123456</AuthCode>
<RespMessage>Transaction Approved</RespMessage>
<RespCode>00</RespCode>
<Amount>100</Amount>
<TerminalId>2056XYZ1</TerminalId>
<Paycode>1210****234</Paycode>
<staff>123S89</staff>
<paymentOption>paycode</paymentOption> </transResponse>
Sample Response (failure)
<transResponse>
<Stan>000003</Stan>
<AuthCode>123456</AuthCode>
<RespMessage>Insufficient Funds</RespMessage>
<RespCode>51</RespCode>
<Amount>100</Amount>
<TerminalId>2056XYZ1</TerminalId>
<Paycode>1210****234/ Paycode >
<staff>123S89</staff>
<paymentOption>paycode</paymentOption>
</transResponse>
Updated about 13 hours ago
What’s Next