bKash (बांग्लादेश) के भुगतान गेटवे सेवा के लिए Flutter पैकेज। इस पैकेज के माध्यम से आप अपने Flutter प्रोजेक्ट में bKash भुगतान आसानी से लागू कर सकते हैं।
सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
flutter_bkash पैकेज एक Flutter प्लगइन है जो बांग्लादेश के नेतृत्व वाले मोबाइल भुगतान गेटवे bKash को Flutter ऐप में आसानी से एम्बेड करने में सक्षम बनाता है। यह लेनदेन शुरू करने, कॉलबैक का हैंडलिंग और भुगतान स्थिति के प्रबंधन के लिए एक सरल API प्रदान करके bKash भुगतान के लिए अमल को सरल बनाता है। बांग्लादेशी बाजार के लिए डेवलपर्स के लिए डिज़ाइन किया गया, यह Android, iOS और macOS प्लेटफॉर्म को सपोर्ट करता है। यह पैकेज ई-कॉमर्स ऐप्स, डिजिटल सेवाओं और किसी भी स्थानीय भुगतान समाधान की आवश्यकता वाले ऐप के लिए आदर्श है।
उपयोग
बांग्लादेश में ई-कॉमर्स ऐप्स
डिजिटल सेवा भुगतान
मोबाइल वॉलेट एकीकरण
ऑनलाइन बिल भुगतान
एप में खरीदारी
मुख्य विशेषताएँ
आसान bKash लेनदेन प्रारंभ
Android, iOS और macOS के लिए समर्थन
भुगतान स्थिति के लिए कॉलबैक प्रबंधन
सुरक्षित भुगतान प्रसंस्करण
pub add कमांड के साथ सरल सेटअप
इनके लिए उपयुक्त
बांग्लादेश के लिए फ्लटर विकासकर्ता
स्थानीय भुगतान विधियों की आवश्यकता वाले ऐप्स
bKash के रूप में भुगतान विकल्प का उपयोग करने वाले व्यवसाय
बांग्लादेश में वित्तीय सेवाएं बना रहे स्टार्टअप
विचार योग्य बातें
bKash व्यापारी खाते की आवश्यकता है
सही API कुंजी कॉन्फ़िगरेशन की आवश्यकता है
बांग्लादेश क्षेत्र तक सीमित
bKash के बैकएंड उपलब्धता पर निर्भर करता है
अतिरिक्त सर्वर-साइड प्रमाणीकरण की आवश्यकता हो सकती है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
bKash(BD) Mobile Finance Payment Gateway Flutter Package
This is a Flutter package for bKash BD Payment Gateway. This package can be used in flutter project. We created this package while working for a project and thought to release for all so that it helps.
:warning: Please note that, you have to contact with bKash sales team for any kind of dev or production access keys or tokens. We don't provide any test account or access keys or don't contact us for such
To refund a completed payment (full or partial), use the refund method. paymentId and trxId come from the pay/payWithAgreement response you're refunding. sku and reason are documented by bKash as optional, but the API rejects the request without them — pass both:
Request
final result = await flutterBkash.refund(
paymentId: "TR0011fd4uZMS1687062024354",
trxId: "AFI60BAC94",
refundAmount: 50.0, // amount as double
sku: "order-1234",
reason: "customer requested refund",
);
The methods mentioned above may throw a BkashFailure exception in case of an error. You can catch and handle the exception using a try-catch block:
try {
// Make a payment or create an agreement
} onBkashFailurecatch (e) {
// Handle the errorprint(e.message);
}
e.message carries bKash's actual error text when the API returns one (e.g. a specific refund rejection reason), falling back to a generic message (e.g. "Bad Request") only when the response has no parseable error body.
Examples for see the /example folder. The demo app also saves every payment/agreement/refund locally (History screen) so you can copy an ID or chain follow-up calls (e.g. pay with a saved agreement, refund a saved payment), and ships a Sandbox Info page with bKash's test wallet numbers, OTP and PIN.