Card Transaction Command
This is used to initiate a card 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 card and transaction would be sent upstream for approval and a response is returned.
Sample request
<request>
<command>purchase</command>
<amount>5000</amount>
<paymentOption>card</paymentOption>
<accounttype>savings</accounttype>
<staff>staff_001</staff>
<tillRef>TXN123456</tillRef>
<additionalData></additionalData>
<tillID>TILL_001</tillID>
</request>
Response Message field description
This field will vary depending on the transaction:
| Property | Type | default | Description |
|---|---|---|---|
| amount | String | null | The transaction amount as a string |
| paymentOption | String | null | A string representing the payment method (case-insensitive) |
| accountType | String | null | The type of account used for the transaction |
| staff | String | null | The identifier for the staff member processing the transaction |
| command | String | null | The command to execute for this transaction |
| tillRef | String | null | A unique reference for the till transaction, enables reconciliation between Till systems and payment processing records and links the payment terminal response back to the specific Till that initiated the request |
| additionalInfo | String | null | Any additional data or information for the transaction(example, loyalty points earned, promotional codes applied, merchant-specific data) |
| tillID | String | null | The identifier of the till device |
Sample Response (success)
The response for success: at least a port is returned.
<transResponse>
<Stan>000003</Stan>
<RespMessage>transaction approved</RespMessage>
<RespCode>00</RespCode>
<Amount>5000</Amount>
<TerminalId>2056XYZ1</TerminalId>
<MaskedPan>...</MaskedPan>
<TransRef>...</TransRef>
<TillRef>TXN123456</TillRef>
<AdditionalTransactionInfo>...</AdditionalTransactionInfo>
<Staff>staff_001</Staff>
<RRN>...</RRN>
<PaymentOption>card</PaymentOption>
<CardScheme>...</CardScheme>
</transResponse>
Sample Response (failure)
<transResponse>
<Stan>000003</Stan>
<RespMessage>insufficient funds</RespMessage>
<RespCode>51</RespCode>
<Amount>5000</Amount>
<TerminalId>2056XYZ1</TerminalId>
<MaskedPan>...</MaskedPan>
<TransRef>...</TransRef>
<TillRef>TXN123456</TillRef>
<AdditionalTransactionInfo>...</AdditionalTransactionInfo>
<Staff>staff_001</Staff>
<RRN>...</RRN>
<PaymentOption>card</PaymentOption>
<CardScheme>...</CardScheme>
</transResponse>Updated 16 days ago
What’s Next