PHP implementation of MPESA checkout API. Simple for even the non techies.
TRY OUT A sample of the checkout process HERE
The $PASSWORD
must be generate using the following approach:
$MERCHENTS_ID = $PAYBILL_NO;
$TIMESTAMP = date("YmdHis",time());// in this format strictly
$PASSKEY = "your SAG password";
$PASSWORD = base64_encode(hash("sha256", $MERCHENTS_ID.$PASSKEY.$TIMESTAMP));
PLEASE NOTE: _if $TIMESTAMP
used is different from the one used to create the $PASSWORD
it will lead to AUTHETICATION ERROR
And you are DONE. Simple.