Create Transaction

Function to create okeconnect transaction (open denom support)
createTransaction()
The request parameters for the createTransaction() function.
Variabletypedefaultdescription
productCodestring-code for the product to be purchased on Okeconnect. (example: "T5", "S20", "SM20")
destinationstring-destination number for the product to be purchased on Okeconnect. (example: 088123456789)
referenceIdstring-unique reference ID for the transaction from your system. (example: 135 or "trx-1")
amountinteger0amount for the product to be purchased with open denomination. (minimum 10000)

Example Return

Choose an example to see the response

Usage recommendation

Use this code structure:

make sure you load the config before using function, check it on Installation based on your framework.