alatpay_sdk 2.0.0
alatpay_sdk: ^2.0.0 copied to clipboard
A Flutter SDK for seamless Alat Pay integration, enabling secure, fast, and reliable in-app payments using the official ALATPay checkout popup.
Changelog #
All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
2.0.0 - 2026-07-23 #
💥 Breaking Changes #
-
Replaced custom payment UI with official ALATPay checkout popup
- All custom payment screens (bank transfer, USSD, bank details, OTP) have been removed
- The SDK now uses the official ALATPay JavaScript checkout popup (
alatpay.js) inside a WebView - All payment methods are handled by the official popup
-
API changes:
secretKeyparameter replaced withapiKey(your ALATPay public key)- Removed
theme(AlatPayTheme) parameter — the official popup has its own styling - Removed
brandingparameter — the official popup uses ALATPay branding - Added optional
colorparameter to customize the popup color onPaymentErrorcallback replaced by unifiedonPaymentCompletewithPaymentResult.success- Added optional
onClosecallback for when the user dismisses the popup
-
Model changes:
PaymentRequest: RemovedaccountNumber,bankCode,orderIdfieldsCustomer.phoneis now optional (String?)- Removed
Bankmodel,PaymentChannelenum, andPaymentStatusenum
🗑 Removed #
- Custom payment screens (home, bank transfer, USSD, bank details, OTP)
AlatPayControllersingletonAlatPayClientandBaseService(direct API calls)AlatPayThemecustomizationRouteTrackernavigation observerAlatPayExceptionhierarchy- All bank image assets
➕ Added #
webview_flutterdependency for rendering the official ALATPay checkout
🔄 Changed #
- Replaced
httpdependency withwebview_flutter