Package Data | |
---|---|
Maintainer Username: | le-yo |
Maintainer Contact: | lenykoskey@yahoo.com (Le-Yo) |
Package Create Date: | 2016-03-10 |
Package Last Update: | 2016-09-07 |
Home Page: | http://devs.mobi |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 03:01:07 |
Package Statistics | |
---|---|
Total Downloads: | 89 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 14 |
Total Watchers: | 4 |
Total Forks: | 11 |
Total Open Issues: | 1 |
#Laravel 5 Package for B2C Mpesa G2 Negotiation
composer require leyo/mpesa
#Add Service provider
leyo\Mpesa\MpesaServiceProvider::class
composer dump-autoload #MPESA Configs
From the root:
sudo nano .env
//Add the following configs as per your Mpesa API settings
SPID=SPID PASSWORD =PASSWORD SERVICEID=SERVICEID initiator_username=initiator_username initiator_pass=initiator_pass B2CPaybill=B2CPaybill result_url=result_url SSL_CERT_PATH=SSL_CERT_PATH SSL_KEY_PATH=SSL_KEY_PATH SSL_PASS=SSL_PASS APICRYPT_PATH=APICRYPT_PATH