bank_alfalah_payment
A Flutter package for integrating Bank Alfalah payment gateway in Flutter applications. Simplifies the payment process with easy configuration and WebView handling.
What this package is like to depend on
Last release 8 days ago
16 Aug 2026
Too new to tell
only 2 dated releases
Nearly every release is documented
notes for 1 of 1 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
2 releases · first in 2025
1 release in the last 12 months
see the full history below
Release timeline
2 releases · Feb 2025 to Aug 2026
2026
Releases
latest 2-
0.1.0-beta.116 Aug 2026 pre-releaseRelease notes
Open source →Complete security-driven rewrite. Every public API from 0.0.1 is replaced. See
MIGRATION.mdfor the upgrade path.Security
- Merchant credentials removed from the client.
BankAlfalahConfig(merchant password, hash, AES keys) is gone. Sessions are created by your backend through the newBankAlfalahSessionProvidercontract. - Payment success is no longer inferred from URL substrings. Redirects are matched strictly against the session's return URI (scheme, host, port, path); unknown URLs never affect payment state.
- Backend verification is mandatory. A redirect produces
PaymentCompletedonly afterverifyPaymentconfirms it server-side. - Sensitive logging removed. The new
PaymentLoggeris off by default and redacts credential-like keys. - HTML escaping. Optional POST-form hand-off escapes all field names
and values; client-side AES hashing (
encrypt,crypto) is removed.
Reliability
- Exactly-once completion: redirect, cancel, timeout, WebView error, and
route dismissal race safely; one
PaymentResultper checkout. - Single navigation owner: the checkout screen pops itself exactly once.
- Cancellable 5-minute timeout (configurable) backed by a
Timer. - Non-main-frame resource errors no longer abort checkout.
API
- New entry point:
BankAlfalahPayment(environment:, sessionProvider:). - Typed money:
Money.pkr(2500)(validated, minor-units based). - Typed results: sealed
PaymentResult(PaymentCompleted,PaymentFailed,PaymentCancelled,PaymentPending,PaymentTimedOut,PaymentVerificationFailed,PaymentError). - Typed errors:
BankAlfalahExceptionhierarchy. - Lifecycle hooks via
PaymentLifecycleObserver. - Dependencies reduced to
webview_flutter+meta(http,crypto,encrypt,uuidremoved).
- Merchant credentials removed from the client.
-
0.0.128 Feb 2025