mpesa
यह Mpesa Daraja API के चारों ओर एक dart लेप है। शुद्ध dart में लिखा गया है, जिसका अर्थ है कि यह फ्रेमवर्क-अनन्य (iOS, Android, Web, सामान्य dart, Fuschia) है और बॉक्स से बाहर काम करता है।
mpesa daraja api के लिए डार्ट वैलेट
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A dart wrapper around mpesa daraja api.
Ready Methods/APIs
You Will need a few things from Safaricom before development.
Add dependency in pubspec.yaml
dependencies:
mpesa: [ADD_LATEST_VERSION_HERE]
Import in your Flutter app or plain dart app.
import 'package:mpesa/mpesa.dart';
class MYClass {
Mpesa mpesa = Mpesa(
clientKey: "YOUR_CONSUMER_KEY_HERE",
clientSecret: "YOUR_CONSUMER_SECRET_HERE",
passKey: "YOUR_LNM_PASS_KEY_HERE",
environment: "sandbox",
);
}
Environment should be either sandbox or production
Lipa na M-Pesa Online Payment API is used to initiate a M-Pesa transaction on behalf of a customer using STK Push. This is the same technique mySafaricom App uses whenever the app is used to make payments.
import 'package:mpesa/mpesa.dart';
class MYClass {
myMethod(){
mpesa
.lipaNaMpesa(
phoneNumber: "",
amount: 1,
businessShortCode: "",
callbackUrl: "",
)
.then((result) {})
.catchError((error) {});
}
}
Please file feature requests and bugs at the issue tracker.

git checkout -b my-new-featuregit commit -m 'Add some feature'git push origin my-new-feature| Contributors |
| Kevin Oduor |
|---|
| Newton Munene |
For help getting started with Flutter, view their online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗