Introduction
This page contains guide to buy Airtime PIN on hyronicwallet.com.
https://hyronicwallet.com/api/datacard/
ENDPOINT -- URL
Buy Airtime PIN
Send a post request to the below endpoint, You can use the PHP integration code below....
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://hyronicwallet.com/api/recharge/', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>'
REQUEST TYPE -- POST
{
'network' : 1,
'amount' : [100,200,500,1000],
'name_on_card' : Ncwallet,
'quantity' : 1
}',
CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Authorization: Token {{Access Code}}' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
Send a post request to the below endpoint.
Expected response:
{
"status" = "success",
"network" = "MTN",
"quantity" = "1",
"pin" = 2541455678",
"serial" = "5434556787_90",
"load_pin" = "*556#",
"price" = 200",
"Amount" = 200",
"oldbal" = 500",
"newbal" = 300",
} REQUEST TYPE -- POST