leyo / mpesa
Mpesa G2 Api Laravel Negotiator
Installs: 89
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 4
Forks: 11
Open Issues: 1
Type:mobileintegration
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
This package is not auto-updated.
Last update: 2024-12-07 20:44:11 UTC
README
#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