Skip to main content
Version: Next

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​

NameRequiredDescription
Content-Type✅application/json

Body (Encrypted)​

FieldTypeRequiredDescription
datastring✅JSON data containing transaction information encrypted with AES-256-CBC

Body (Decrypted)​

FieldTypeDescription
order_idstringPartner's order ID
amountnumberActual payment amount
payment_typestringPayment type (default: QR)
transaction_typestringTransaction type (e.g. SALE)
transaction_statusstringTransaction status (may be empty)
retrieval_ref_nostringBank reference transaction code
request_idstringUnique request identifier
tipnumberTip amount (if any, default 0)
narrativestringTransfer description entered by the customer
acc_nostringAccount number used for the transaction (if available)
from_acc_nostringSource account number of the transaction (may be empty)
original_transaction_datenumberTimestamp of the transaction date
serial_nostringSerial number of the POS device that processed the transaction (card payments)
batch_nostringTransaction batch number (card payments)
invoice_nostringInvoice number of the transaction on the POS device (card payments)
extra_dataobjectAdditional 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.