About PHP SAP

What We Offer

PHP SAP is a brainchild of Rent Hero Kenya.We provide you with a painless way to easily integrate sms,airtime and mobile money payments into your dynamic web applications.Getting started is as easy as abc.Start receiving payments online in your project or business using our SAP API.

Effective Analitic

We provide you with robust and effective analytics into the performance of your SAP account in general.

User Account

You create an account where you will manage all your application details and get an API Key.

SMS

Send bulk SMS from our gateway easily and quickly from your dynamic web application.SMS cost Ksh 0.8

Airtime

Distribute or send airtime from your web application easily and quickly at any time.

Mobile Money

Tap into the mobile money payments using MPESA.We provide you with a platform to get started easily.

Notifications

Receive notifications on your callbacks anytime an action takes place on your account.

How it works

Easy Steps To Get Started

Before getting started download our gateway class HERE

Send SMS


require_once 'PHPSAPGateway.php';
$gateway= new PhpSapGateway;

//Set your authentication credentials below(Required)
$username="username";
$apiKey="api key";

//Set SMS Receiver(in international format for this case +254) and Message below(Required)
$Receiver="+254708344101";
$Message="i love nerds";

//Pass authentication credentials and your SMS data into an array
$SMSData = array(
	'Receiver' => $Receiver,
	'Message' => $Message,
	'username'=>$username,
	'apiKey'=>$apiKey
);

	//Convert the array to JSON String.
$SMSDataEncoded = json_encode($SMSData);

	//Thats it,from here we will take care of the rest.
try {
	$result=$gateway->ProcessSMS($SMSDataEncoded);
	print_r($result);
} catch (Exception $e) {
	echo $e->getMessage();
}

Send Airtime


require_once 'PHPSAPGateway.php';
$gateway= new PhpSapGateway;

//Set your authentication credentials below(Required)
$username="username";
$apiKey="api key";

//Set airtime Receiver and Amount below(Required)
$Receiver="+254708344101";
$Amount="10";

//Pass authentication credentials and your airtime data into an array
$AirtimeData = array(
	'Receiver' => $Receiver,
	'Amount' => $Amount,
	'username'=>$username,
	'apiKey'=>$apiKey
);

	//Convert the array into JSON string.
$AirtimeDataEncoded = json_encode($AirtimeData);

	//Thats it,from here we will take care of the rest.
try {
	$result=$gateway->ProcessAirtime($AirtimeDataEncoded);
	print_r($result);
} catch (Exception $e) {
	echo $e->getMessage();
}

Payments

Kindly find the guide and code samples for initiating MPESA B2C,B2B,C2B,LMNO,Payment product Balance and Transfer on our Github HERE

Integration

You can easily integrate your payment product to your php web application to receive and transfer funds without much pain.

What You Get

Important Features

For developers
  • Bulk SMS
  • Airtime
  • MPESA B2C
  • MPESA C2B
  • MPESA B2B
  • MPESA LNMO
  • Payments Wallet
  • SAP Wallet
  • Dashboard