// Your variables $key="YOUR-ACCOUNT-KEY"; $reference="TRANSACTION REFERENCE"; $response = httpPost("https://api.textng.xyz/vtu-transaction-status/" ,array("key"=>"$key","reference"=>"$reference"));function httpPost($url, $data){ $curl =curl_init ($url);curl_setopt ($curl, CURLOPT_POST, true);curl_setopt ($curl, CURLOPT_POSTFIELDS, http_build_query($data));curl_setopt ($curl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); curl_close($curl);echo $response; }
| Parameters | Example | Description |
|---|---|---|
|
Key |
XXXXX-XXXX-XXXXX | This can be found in the Developers page of your dashboard. The key authorizes the transaction. |
|
Reference |
XXXXXXXXXX | This is the transaction reference issued at initiation. |
{"status":true ,"message":"Transaction found","data":{"transaction_status":"PROCESSING","transaction_type":"AIRTIME","amount_charged":"97.5"}}