mpesa_flutter_plugin 0.0.2 mpesa_flutter_plugin: ^0.0.2 copied to clipboard
Use this plugin to implement Lipa Na MPESA Online from your app. Will require a backend setup in order to save transaction details. This only gives you a payment initialization interface.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add mpesa_flutter_plugin
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
mpesa_flutter_plugin: ^0.0.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:mpesa_flutter_plugin/mpesa_flutter_plugin.dart';