grishonmunene/mpesa-stk

M-Pesa STK Push integration for Laravel

Maintainers

Package info

github.com/MuneneMuchungu/mpesa-stk-push-laravel

pkg:composer/grishonmunene/mpesa-stk

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2025-08-29 23:29 UTC

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