grishonmunene / mpesa-stk
M-Pesa STK Push integration for Laravel
dev-main
2025-08-29 23:29 UTC
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.0
- illuminate/support: ^9.0|^10.0|^11.0|^12.0
This package is not auto-updated.
Last update: 2026-04-11 06:15:51 UTC
README
A Laravel 12 package that integrates M-Pesa Daraja STK Push as a vendor, making it easy to initiate and process mobile money payments in your application.
Features
- ✅ Easy integration with Laravel 12
- ✅ Configurable via
.env - ✅ Handles STK Push requests and callbacks
- ✅ Works with Safaricom M-Pesa Daraja API
Installation
composer require grishonmunene/mpesa-stk ## Publish vendor php artisan vendor:publish --provider="GrishonMunene\MpesaStk\MpesaStkServiceProvider" ## Add the following environment variables to your .env file: MPESA_STK_CONSUMER_KEY=your_consumer_key MPESA_STK_CONSUMER_SECRET=your_consumer_secret MPESA_STK_PASSKEY=your_passkey MPESA_STK_SHORTCODE=your_shortcode MPESA_STK_CALLBACK_URL=your_callback_url MPESA_STK_ENVIRONMENT=sandbox