Skip to main content

swichpay_flutter 1.0.2 copy "swichpay_flutter: ^1.0.2" to clipboard
swichpay_flutter: ^1.0.2 copied to clipboard

Flutter SDK for integrating Swich payment services.

Changelog #

1.0.0 #

Initial public release.

Added #

  • Built-in payment sheet (SwichPay.presentPaymentSheet) supporting:
    • Card payments (Visa/Mastercard), including saved cards and 3-D Secure (device-data-collection and OTP step-up).
    • E-Wallet payments (EasyPaisa/JazzCash), including saved wallets.
    • Bank Account payments, including an OTP confirmation step.
    • Biller (1Bill) payments.
    • QR (RAAST dynamic) payments.
    • RTP Now payments (Raast mobile/IBAN or bank account).
    • RTP E-Wallet payments.
    • Automatic discount lookup and display for E-Wallet and Card payments.
  • Standalone, session-less "direct" checkouts for E-Wallet, Bank Transfer, 1Bill, QR, RTP Now, and RTP E-Wallet (SwichPay.present*Checkout), for integrations that don't need the full payment-method picker.
  • Hosted checkout (SwichPay.presentHostedCheckout / presentHostedCheckoutSheet) for a WebView-based flow.
  • Direct card payment (SwichPay.pay) for fully custom card UI.
  • Payment session inquiry (SwichPay.inquirePaymentSession) and cancellation.
  • App-wide payment result stream (SwichPay.onResult).
  • Sandbox and production environment configuration (Environment.sandbox / Environment.production), with base URL overrides for local backend testing.
  • Typed exception hierarchy (SwichPayNotInitializedException, SwichPayValidationException, SwichPayNetworkException, SwichPayApiException, SwichPayAuthException) so callers can handle SDK errors without parsing raw HTTP responses.

Security #

  • Card number, CVC, CNIC, MSISDN, account number/alias, IBAN, OTP, and discount-lookup reference values are redacted from debug logs.
  • Debug logging (swichpayLog) is a no-op outside debug builds.
0
likes
0
points
293
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter SDK for integrating Swich payment services.

Homepage

License

unknown (license)

Dependencies

dio, flutter, gal, path_provider, qr_flutter, share_plus, webview_flutter

More

Packages that depend on swichpay_flutter