flutter_mpesa_package 0.0.4 copy "flutter_mpesa_package: ^0.0.4" to clipboard
flutter_mpesa_package: ^0.0.4 copied to clipboard

Simplified methods to handle M-PESA DARAJA API.

Flutter Mpesa #

License

A Flutter package that provides easy integration with the M-Pesa Daraja API for handling money transactions.

Features #

  • Secure and convenient integration with the M-Pesa Daraja API.

  • Authorization - generate M-pesa daraja api token

  • Dynamic QR

  • Mpess Express (Lipa Na Mpesa)

  • CustomerToBusiness (C2B)

  • BusinessToCustomer (B2C)

  • Transaction Status

  • Account Balance

  • Reversals

  • Tax Remittance

  • Error handling and response parsing for seamless API interactions.

  • Supports both production and sandbox (testing) environments.

Installation #

dart pub add flutter_mpesa_package

Requirements #

Android #

See the required device permissions from the AndroidManifest.xml file.

<manifest>
  ...
  <uses-permission android:name="android.permission.INTERNET" />
  ...
</manifest>

Using #

initialization #

Initialize the M-Pesa Daraja API with your credentials:

void main() {

FlutterMpesa.initFlutterMpesa(
    consumerKey: "",
    consumerSecret: "",
    securityCredential: "",
  );
  runApp(const MyApp());
}

NOTE : YOU DON'T HAVE TO CALL THIS METHOD EVERY TIME YOU USE OTHER METHODS, I ALREADY DID THAT FOR INDIVIDUAL METHODS.

Read More

Contributing #

Contributions are welcome! If you find any bugs or want to add new features, feel free to submit issues or pull requests.

Acknowledgements #

This package is inspired by the M-PESA DARAJA API API provided by Safaricom Limited.

7
likes
110
points
50
downloads

Publisher

unverified uploader

Weekly Downloads

Simplified methods to handle M-PESA DARAJA API.

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on flutter_mpesa_package