-
Notifications
You must be signed in to change notification settings - Fork 13
Home
Drizzentic edited this page Mar 16, 2016
·
3 revisions
This library has been created solely for php users but the same logic can be replicated in other languages.
Before you can use the online checkout functionality please make sure you have the following.
- Mpesa paybill account.(paybill number)
- Passkey from safaricom.
- PHP.
- Curl.
Under the config folder edit the config.php. Replace the values with the ones supplied by safaricom
define("MERCHANT_ID",''); //Put the unique merchant ID provided by the client.
define("PASSKEY", ''); //Put the passkey provided for SAG access
To test the library replace the variables in the example.php with the correct variables.
$mpesaclient->processCheckOutRequest($Password,MERCHANT_ID,TRANSACTIONID,REFERENCEID, AMOUNT,MSISDN,CALLBACK_URL);