jengo / pesa
Unified multi-gateway payment processing subsystem for CodeIgniter 4 and the Jengo Framework with M-Pesa Daraja 3.0, Pesapal v3, Stripe, and Flutterwave support.
v0.1.0
2026-10-09 12:42 UTC
Requires
- php: ^8.2
- codeigniter4/framework: ^4.7
- jengo/base: ^1.1
- jengo/queues: ^1.0
Requires (Dev)
- phpunit/phpunit: ^11.5
Suggests
- jengo/broadcasting: Required for real-time WebSocket payment notifications to the frontend
Provides
None
Conflicts
None
Replaces
None
README
Jengo Pesa
Unified multi-gateway payment processing subsystem for CodeIgniter 4 and the Jengo Framework with first-class support for M-Pesa Daraja 3.0, Pesapal v3, Stripe, and Flutterwave.
Documentation • License • Issues
Installation
composer require jengo/pesa php spark jengo:install pesa
Quick Start
use Jengo\Pesa\DTO\StkRequest; use Jengo\Pesa\Pesa; // Trigger an M-Pesa STK Push $response = Pesa::gateway('mpesa')->stkPush(new StkRequest( phone: '0712345678', amount: 1500, accountReference: 'INV-1002', transactionDesc: 'Annual Subscription' )); // Hosted checkout (Pesapal or Stripe) $checkout = Pesa::gateway('pesapal')->checkout(new CheckoutRequest( amount: 4500, currency: 'KES', description: 'Order #442', callbackUrl: site_url('/orders/442/verify') ));
Documentation
For full guides on M-Pesa Daraja 3.0 workflows (STK, C2B, B2C), hosted checkouts (Pesapal v3, Stripe), transaction ledgers, auto-routed webhooks, and CLI commands, visit https://lipex-org.github.io/jengophp.com/packages/pesa/.
License
Released under the MIT License.