Download the PHP package thegr8dev/eclassmpesa without Composer
On this page you can find all versions of the php package thegr8dev/eclassmpesa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thegr8dev/eclassmpesa
More information about thegr8dev/eclassmpesa
Files in thegr8dev/eclassmpesa
Package eclassmpesa
Short Description This is additional addon which add mpesa(safaricom) payment gateway for eclass
License
Informations about the package eclassmpesa
Eclass Mpesa Add On Installing and Setup Wizard
Before installing this package make sure smodav/mpesa is installed.
Requirements
- Eclass version v2.2 or above.
- php version 7.2 or 7.3 must be.
Installation
Run the package using follwing command:
composer require eclass/eclassmpesa
After successully install add run the following command:
php artisan eclassmpesa:install
After run the command add following variables in .env file of your script
Open .env file and add this:
-
MPESA_DEFAULT=staging
-
MPESA_KEY=
-
MPESA_SECRET=
-
MPESA_INITIATOR=
-
MPESA_PASSKEY=
-
MPESA_PAYBILL=
-
MPESA_SHORTCODE=
-
MPESA_ENABLE=0
-
MPESA_VALIDATION=
- MPESA_CALLBACK=
Note:
Update the following URLs in your .env file
Update mpesa validation url in MPESA_VALIDATION
Your mpesa validation url will be :
https://yourdomain.com/public/api/payment/validation
Update mpesa callback url in MPESA_CALLBACK
Your mpesa callback url will be :
https://yourdomain.com/public/api/payment/confirm/callback
Remove public if your domain not have in url.
Wohoo ! You Successfully installed the Mpesa Add On your eClass.
Update FAQ.
Q. What if new update came?
Well add-on we updated time to time and you should keep eye on the addon page by bookmarking it. if a new update came just hit follwing command. new version will be released with new version tag.
composer update
on your project root directory.