Overview
The mpesa package is a pure Dart wrapper for the M-Pesa Daraja API, enabling seamless integration of M-Pesa payment services across multiple platforms. Designed to be framework-agnostic, it supports Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform applications. The package simplifies authentication, transaction initiation, and status checks using native Dart, requiring no platform-specific code. It works out of the box with Flutter and plain Dart projects.
Use cases
- Mobile app payments
- Web-based M-Pesa integrations
- Cross-platform e-commerce apps
- Backend services with M-Pesa
- Automated transaction tracking
Key features
- Pure Dart implementation
- Multi-platform support
- Framework agnostic
- Easy authentication handling
- Real-time transaction status checks
Suitable for
- Flutter developers
- Dart-only projects
- M-Pesa payment integrations
- Full-stack developers
- Startups in East Africa
Considerations
- Requires valid M-Pesa Daraja API credentials
- Needs proper environment setup for production
- Limited to Daraja API endpoints
- No built-in UI components
- Dependent on external M-Pesa service stability