Flutter-Paket für den Zahlungsgateway-Dienst bKash (Bangladesch). bKash-Zahlungen können mithilfe dieses Pakets in Ihrem Flutter-Projekt einfach implementiert werden.
Aus öffentlichen Paketdaten erstellte Orientierung.
Das flutter_bkash-Paket ist ein Flutter-Plugin, das die nahtlose Integration von bKash, dem führenden mobilen Zahlungsgateway Bangladeshs, in Flutter-Anwendungen ermöglicht. Es vereinfacht den Prozess der Implementierung von bKash-Zahlungen durch Bereitstellung einer einfachen API zum Starten von Transaktionen, Verarbeiten von Rückrufen und Verwaltung von Zahlungsstatus. Das Paket ist für Entwickler konzipiert, die sich auf den bangladeschischen Markt konzentrieren, und unterstützt Android, iOS und macOS. Es ist ideal für E-Commerce-Apps, digitale Dienstleistungen und alle Anwendungen, die lokale Zahlungslösungen erfordern.
Anwendungsfälle
E-Commerce-Apps in Bangladesch
Zahlungen für digitale Dienstleistungen
Mobile-Wallet-Integrationen
Online-Rechnungszahlungen
In-App-Käufe
Hauptmerkmale
Einfache bKash-Transaktionsinitiierung
Unterstützung für Android, iOS und macOS
Callback-Verwaltung für Zahlungsstatus
Sichere Zahlungsabwicklung
Einfache Einrichtung mit dem Befehl pub add
Geeignet für
Flutter-Entwickler, die sich auf Bangladesch konzentrieren
Apps, die lokale Zahlungsmethoden erfordern
Unternehmen, die bKash als Zahlungsoption nutzen
Startups, die Finanzdienstleistungen in BD aufbauen
Hinweise
Benötigt ein bKash-Händlerkonto
Erforderliche API-Schlüsselkonfiguration
Beschränkt auf die Region Bangladesch
Abhängig von der Verfügbarkeit des bKash-Backends
Kann zusätzliche serverseitige Überprüfung erfordern
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
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.