FLUTTER ECOSYSTEM

mpesa

This is a dart wrapper around mpesa daraja api. Written in pure dart which means it's framework agnostic(ios,android,web,plain dart,fuschia) and works out of the box.

Latest version
2.0.2
30-day downloads
41
Likes
36
Pub points
140

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

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
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add mpesa

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.