title: Intergrating of AirtelMoney API to Android App
body: <p>Well we can count more than three years since <a href="https://safaricom.com/" rel="noreferrer">Safaricom</a> released the M-Pesa APIs as RESTful APIs accessible through their <a href="https://developer.safaricom.co.ke/" rel="noreferrer">developer portal</a>. Their <a href="https://github.com/safaricom" rel="noreferrer">Github repository</a>, has a sample android application that uses "<a href="https://developer.safaricom.co.ke/docs#lipa-na-m-pesa-online-payment" rel="noreferrer">Lipa na M-Pesa Online</a>" API. This API initiates an M-Pesa transaction on behalf of the user of an app, the user needs only to input their M-Pesa PIN to complete the transaction.</p>
  
  <pre><code>public STKPushService mpesaService() {
      return getRestAdapter().create(STKPushService.class);
  }
  </code></pre>
  
  <p>Now is their something similar for AirtelMoney because I have clients who want to have all the mobile money payments we have in Kenya in their app. Its worrying that their is more of Mpesa than other apis? I am looking for a way to incorporate airtel money to my app like we do on Mpesa because we already have apps that support airtel money</p>
  
  <blockquote>
    <p>POST <a href="https://sandbox.safaricom.co.ke/mpesa/stkpush/v1/processrequest" rel="noreferrer">https://sandbox.safaricom.co.ke/mpesa/stkpush/v1/processrequest</a></p>
  </blockquote>
  
  <p>Has anyone tried this <a href="https://github.com/drizzentic/AirtelMoneyLib" rel="noreferrer">AirtelMoneyLib</a> which I see was last updated 3 years ago.</p>
  
  <pre><code>&lt;?php
  /**
   *
   */
  require_once('config/Constant.php');
  require_once('lib/AirtelMoney.php');
  $airtelclient=new AirtelMoney;
  //Call the processing function with parameters as shown
  //You can do a retrieval of data from a request at this point
  //Not advisable to pass the username and password in request. Rather use an environment variable for the same
  /**
   * $Username=$_POST['username'];
   * $password=$_POST['password'];
   * $msisdn=$_POST['msisdn'];
   * $referenceId=$_POST['referenceId'];
   * $timeFrom=$_POST['timeFrom'];
   * $timeTo=$_POST['timeTo'];
   */
  $referenceId="1601056579194";
  $timeTo="";
  $timeFrom="";
  $airtelclient-&gt;processMerchantQuery(USERNAME,PASSWORD,$referenceId,MSISDN,REQUEST1,$timeTo,$timeFrom);
  ?&gt;
  </code></pre>
  
  <p>I need to know a few things that are making it hard for me to even get some feedback when a <code>http request</code> is sent. 
  A recent google search pulled up new API called <a href="http://developer.lipisha.com" rel="noreferrer">LIPISHA</a> now kind off open source on <a href="https://github.com/lipisha" rel="noreferrer">github</a> how the set back with it is that it comes with a <a href="https://lipisha.com/payments/accounts/index.php/app/launch/pricing" rel="noreferrer">huge price tag</a> 
  That is why am trying to see how this old api can work for me</p>