ignatius-mbugua / laravel-mpesa-stk-push

Laravel web app that uses Mpesa STK push

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Mpesa STK Push

The web app performs an mpesa stk push to the phone number provided together with the amount given

Usage

  • Copy the .env.example to .env and edit database credentials together with your Mpesa credentials
  • Run composer install
  • Run npm run dev
  • Run php artisan key:generate
  • Run php artisan migrate

NOTE: MPESA_CALLBACK_URL in local development should be served with ngrok or other https tunneling softwares e.g MPESA_CALLBACK_URL=https://-----.ngrok.io

License

MIT License

About

Laravel web app that uses Mpesa STK push

License:MIT License


Languages

Language:PHP 77.9%Language:Blade 20.9%Language:Shell 0.7%Language:Vue 0.5%