IPN Callback
IPN (Instant Payment Notification) is the mechanism by which TCONNECT automatically notifies the partner system of transaction results when a customer completes a payment.
POST {{partner_url}}
TCONNECT will call this partner URL to update the order status as soon as the payment is recorded in the system.
Request
Headers
| Name | Required | Description |
|---|---|---|
Content-Type | ✅ | application/json |
Body (Encrypted)
| Field | Type | Required | Description |
|---|---|---|---|
data | string | ✅ | JSON data containing transaction information encrypted with AES-256-CBC |
Body (Decrypted)
| Field | Type | Description |
|---|---|---|
order_id | string | Partner's order ID |
amount | number | Actual payment amount |
payment_type | string | Payment type (default: QR) |
transaction_type | string | Transaction type (e.g. SALE) |
transaction_status | string | Transaction status (may be empty) |
retrieval_ref_no | string | Bank reference transaction code |
request_id | string | Unique request identifier |
tip | number | Tip amount (if any, default 0) |
narrative | string | Transfer description entered by the customer |
acc_no | string | Account number used for the transaction (if available) |
from_acc_no | string | Source account number of the transaction (may be empty) |
original_transaction_date | number | Timestamp of the transaction date |
serial_no | string | Serial number of the POS device that processed the transaction (card payments) |
batch_no | string | Transaction batch number (card payments) |
invoice_no | string | Invoice number of the transaction on the POS device (card payments) |
extra_data | object | Additional transaction data (may be an empty object {}) |
Example
IPN Example (Encrypted)
{
"data": "e53cb37a8743b33bbe598bf43394c4..."
}
IPN Example (Decrypted)
{
"order_id": "183",
"amount": 50000.0,
"payment_type": "CARD",
"transaction_type": "SALE",
"transaction_status": "",
"retrieval_ref_no": "840239940659",
"request_id": "dc4b1e82-8de6-40c8-9944-b4c8dc8f926e",
"tip": 0.0,
"from_acc_no": "",
"original_transaction_date": 1794502807,
"serial_no": "00082069615",
"batch_no": "000015",
"invoice_no": "000071",
"extra_data": {}
}
important
Partners need to build a publicly accessible backend API for TCONNECT to call. The accepted method is POST with the header Content-Type: application/json. After processing, partners should respond with HTTP Code 200 to confirm the IPN was received successfully.