mpesa 0.0.4-dev.1 copy "mpesa: ^0.0.4-dev.1" to clipboard
mpesa: ^0.0.4-dev.1 copied to clipboard

outdated

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. It provides a nice and well docum [...]

example/mpesa_example.dart

import 'package:mpesa/mpesa.dart';

void main() {
  var mpesa = Mpesa(
    clientKey: "YOUR_CONSUMER_KEY_HERE",
    clientSecret: "YOUR_CONSUMER_SECRET_HERE",
    passKey: "YOUR_LNM_PASS_KEY_HERE",
    initiatorPassword: "YOUR_SECURITY_CREDENTIAL_HERE",
    environment: "sandbox",
  );

  mpesa
      .lipaNaMpesa(
        phoneNumber: "",
        amount: 1,
        businessShortCode: "",
        callbackUrl: "",
      )
      .then((result) {})
      .catchError((error) {});
}
36
likes
0
pub points
62%
popularity

Publisher

verified publishernewtonmunene.me

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. It provides a nice and well documented interface for Safaricom's daraja api.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, meta

More

Packages that depend on mpesa