PackageTrack
Sign in Get early access

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.

0.0.1 aliarain/bank_alfalah_payment

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
Release Pre-release

Releases

latest 2
  1. 0.1.0-beta.1 16 Aug 2026 pre-release
    Release notes

    Complete security-driven rewrite. Every public API from 0.0.1 is replaced. See MIGRATION.md for 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 new BankAlfalahSessionProvider contract.
    • 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 PaymentCompleted only after verifyPayment confirms it server-side.
    • Sensitive logging removed. The new PaymentLogger is 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 PaymentResult per 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: BankAlfalahException hierarchy.
    • Lifecycle hooks via PaymentLifecycleObserver.
    • Dependencies reduced to webview_flutter + meta (http, crypto, encrypt, uuid removed).
    Open source →
  2. 0.0.1 28 Feb 2025
    Release notes
    • Initial release (deprecated; insecure client-side integration).
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive