Download the PHP package kemboielvis/mpesa-sdk-php without Composer
On this page you can find all versions of the php package kemboielvis/mpesa-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mpesa-sdk-php
mpesa-php-sdk
This is an SDK for Safaricom Mpesa API
Basic Usage:
use composer to install the sdk and import autoload file in vendor
-
Initialize mpesa sdk with consumer key and consumer secret from https://developer.safaricom.co.ke/
- Sending an STK push
3.Register confirmation and Validation url
-
Customer to business
- Business to Customer
Transfer money from business to a customer InitiatorName => The username of the M-Pesa B2C account API operator. NOTE: the access channel for this operator must be API and the account must be in active status.
SecurityCredential => Pass the initiator password
CommandID => SalaryPayment, BusinessPayment, PromotionPayment
Phone Number => This is the customer mobile number to receive the amount. The number should have the country code (254) without the plus sign.
Remarks => This is the customer mobile number to receive the amount. The number should have the country code (254) without the plus sign.
QueueTimeOutURL => This is the URL to be specified in your request that will be used by API Proxy to send notification incase the payment request is timed out while awaiting processing in the queue.
Result URL => This is the URL to be specified in your request that will be used by M-Pesa to send notification upon processing of the payment request.
Occasion => Any additional information to be associated with the transaction. (Sentence of upto 100 characters)
All versions of mpesa-sdk-php with dependencies
ext-openssl Version *