support@nirbhor.com      +61 421 797 717

You can send your mobile recharge request from your website or any other application to us. Our simple api access to the mobile recharge system will allow you to do that. You can use the below methods:

-   SOAP

Our SOAP url for mobile recharge is https://www.nirbhor.com/http/mrsoap.php?wsdl

You can download our php class can call the functions on it.

Example of how to use mobile recharge class:

- update the account id and API Key on the file Class.NirbhorM.php. ( to get account id and api key please log in to you account click on API tab)

define ('NIRBHOR_AC','000000'); // replace wiht your account id
define ('NIRBHOR_KEY','87fsdfff7sf7sd7fs7fs7f'); // replace with your appi key

- Do a simple call to check your balance:

require_once "Class.NirbhorM.php";
$class_nirbhor = new NirbhorM();
$class_nirbhor->connect(); // connect to Nirbhor

$balance  = $class_nirbhor->query_balance(); // do query for blance

//display the result

echo "Account ID :". $balance-> account_id." <br/>";
echo "balance :". $balance-> balance." <br/>";
echo "query time :". $balance-> query_time." <br/>";
echo "error_code:". $balance-> error_code." <br/>";
echo "error_desc:". $balance-> error_desc." <br/>";

- submit a recharge

require_once "Class.NirbhorM.php";
$class_nirbhor = new NirbhorM();
$class_nirbhor->connect();

$result = $class_nirbhor->mobile_topup("bangladesh",'Grameenphone','prepaid','0170XXXXXXX','20'); // call recharge passing the value country, mobile carrier, prepaid/postpaid, mobile nubmer, amount

//display the results

echo "Account ID :". $result-> account_id." <br/>";
echo "recharge_id :". $result-> recharge_id." <br/>";
echo "country_name :". $result-> country_name." <br/>";
echo "carrier_name:". $result-> carrier_name." <br/>";
echo "mobile_type:". $result-> mobile_type." <br/>";
echo "mobile_number:". $result-> mobile_number." <br/>";
echo "recharge_amount :". $result-> recharge_amount." <br/>";
echo "user_amount :". $result-> user_amount." <br/>";
echo "recharge_time:". $result-> recharge_time." <br/>";
echo "recharge_status:". $result-> recharge_status." <br/>";
echo "error_code:". $result-> error_code." <br/>";
echo "error_desc:". $result-> error_desc." <br/>";

- If we have submitted the recharge successfuly we will have a recharge_Id back as per previous example. Now we can check the status of this recharge calling query function:

require_once "Class.NirbhorM.php";
$class_nirbhor = new NirbhorM();
$class_nirbhor->connect();

$result = $class_nirbhor->query("recharge_id"); // replace recharge id with your recharge id recieved from mobile_topup funciton call

//display the result

echo "Account ID :". $result-> account_id." <br/>";
echo "recharge_id :". $result-> recharge_id." <br/>";
echo "country_name :". $result-> country_name." <br/>";
echo "carrier_name:". $result-> carrier_name." <br/>";
echo "mobile_type:". $result-> mobile_type." <br/>";
echo "mobile_number:". $result-> mobile_number." <br/>";
echo "recharge_amount :". $result-> recharge_amount." <br/>";
echo "user_amount :". $result-> user_amount." <br/>";
echo "recharge_time:". $result-> recharge_time." <br/>";
echo "recharge_status:". $result-> recharge_status." <br/>";
echo "error_code:". $result-> error_code." <br/>";
echo "error_desc:". $result-> error_desc." <br/>";

 

If you have any question please email or call us.



  Contact Us
  Nirbhor Solutions

14/1, Alfred St,
Westmead - 2145
Australia

Tel : + 61.421.797.717
Mail : support@nirbhor.com