Get Transaction Status
Function to track your transaction.Note
Transaction can be tracked only for a day after the transaction is created. After that, the transaction will can't be tracked.
(Conditional use, dont use for your history transaction. save every transaction to your database!)
Variable | type | default | description |
---|---|---|---|
productCode | string | - | code for the product to be purchased on Okeconnect. (example: "T5", "S20", "SM20") |
destination | string | - | destination number for the product to be purchased on Okeconnect. (example: 088123456789) |
referenceId | string | - | unique reference ID for the transaction from your system. (example: 135 or "trx-1") |
amount | integer | 0 | amount for the product to be purchased with open denomination. (minimum 10000) |
Example Return
Choose an example to see the responseUsage recommendation
Use this code structure:make sure you load the config before using function, check it on Installation based on your framework.