moamalat_payment 1.0.1 copy "moamalat_payment: ^1.0.1" to clipboard
moamalat_payment: ^1.0.1 copied to clipboard

moamalat_payment package that allows you to integrate Moamalat payment gateway into your Flutter app .

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.1 - 2024-09-23 #

πŸ“ Documentation Improvements #

Enhanced Comments

  • IMPROVED: Added clear explanation for merchantReference parameter
  • IMPROVED: Updated comments to explain transaction reference usage
  • IMPROVED: Better developer understanding of parameter purpose

Examples Updated

  • UPDATED: Main.dart example with improved comments
  • UPDATED: README.md examples with clearer explanations
  • UPDATED: All merchantReference instances now have descriptive comments

πŸ”§ Minor Fixes #

  • FIXED: Comment clarity for transaction reference management
  • IMPROVED: Developer experience with better parameter documentation

1.0.0 - 2024-09-23 #

πŸŽ‰ Major Release - Complete Package Overhaul #

This major release represents a complete transformation of the MoamalatPayment package with significant new features, WASM compatibility, and comprehensive improvements.

✨ Added #

πŸ’± Currency Conversion System

  • NEW: CurrencyConverter utility class for Libyan Dinar ↔ Dirham conversion
  • NEW: dinarToDirham() - Convert dinar amounts to dirham strings
  • NEW: dinarStringToDirham() - Convert dinar strings to dirham format
  • NEW: dirhamToDinar() - Convert dirham back to dinar for display
  • NEW: isValidDinarAmount() and isValidDirhamAmount() - Input validation
  • NEW: formatDinarAmount() and formatDirhamAmount() - Display formatting
  • NEW: Thousands separators and currency symbols in formatting

🌐 WASM Compatibility & Multi-Platform Support

  • NEW: Full WebAssembly (WASM) runtime compatibility
  • NEW: MoamalatPaymentWeb - Web-specific implementation using HTML iframe
  • NEW: MoamalatPaymentStub - Graceful fallback for unsupported platforms
  • NEW: MoamalatPaymentPlatform - Conditional imports for platform detection
  • NEW: Automatic platform selection (Android/iOS/Web/WASM)

🎨 User Experience Enhancements

  • NEW: Beautiful loading indicators with customizable messages
  • NEW: Arabic language support with RTL text handling
  • NEW: Smooth navigation transitions with proper WebView cleanup
  • NEW: Enhanced error handling with user-friendly messages
  • NEW: Professional loading screens with progress indicators

πŸ”’ Security & Compliance

  • NEW: Enhanced HMAC-SHA256 transaction signing
  • NEW: Improved secret key handling and validation
  • NEW: Comprehensive input validation for all parameters
  • NEW: Security best practices documentation

πŸš€ Improved #

πŸ“š Documentation

  • IMPROVED: Complete README.md overhaul with professional design
  • IMPROVED: Comprehensive API documentation with examples
  • IMPROVED: Real-world usage examples (e-commerce, gaming)
  • IMPROVED: Platform-specific setup guides
  • IMPROVED: Troubleshooting section with common issues
  • IMPROVED: Security best practices guide
  • IMPROVED: Multi-language examples (Arabic/English)

πŸ—οΈ Code Quality

  • IMPROVED: Complete code documentation following pub.flutter-io.cn standards
  • IMPROVED: Enhanced error handling and edge case management
  • IMPROVED: Type safety improvements with detailed model classes
  • IMPROVED: Code organization and structure
  • IMPROVED: Performance optimizations for WebView handling

πŸ› οΈ Developer Experience

  • IMPROVED: Comprehensive example application with live demonstrations
  • IMPROVED: Currency conversion examples and best practices
  • IMPROVED: Platform-specific implementation guides
  • IMPROVED: Enhanced debugging and logging capabilities

πŸ”§ Fixed #

πŸ› Bug Fixes

  • FIXED: WebView navigation back button smoothness issues
  • FIXED: WebView overlay appearing during navigation transitions
  • FIXED: Memory leaks in WebView disposal
  • FIXED: PopScope navigation handling for Flutter 3.16+
  • FIXED: Platform-specific build issues and compatibility

πŸ”„ Compatibility

  • FIXED: Flutter 3.16+ compatibility with PopScope migration
  • FIXED: Gradle plugin compatibility issues
  • FIXED: iOS build configuration problems
  • FIXED: Web deployment and WASM runtime issues

πŸ—‘οΈ Removed #

🧹 Deprecated Features

  • REMOVED: Legacy WillPopScope implementation (replaced with PopScope)
  • REMOVED: Redundant debug print statements
  • REMOVED: Unused import statements and dependencies
  • REMOVED: Generated files from version control

πŸ“¦ Package Management #

πŸ”„ Dependencies

  • UPDATED: flutter_inappwebview to latest compatible version
  • UPDATED: crypto package for enhanced security
  • UPDATED: Flutter SDK compatibility to latest stable

πŸ“ Repository

  • IMPROVED: Comprehensive .gitignore following Flutter best practices
  • IMPROVED: Repository structure and organization
  • IMPROVED: Removed generated files from version control
  • IMPROVED: Added proper licensing and contribution guidelines

🌟 Highlights #

This release transforms MoamalatPayment from a basic payment widget into a comprehensive, enterprise-ready payment solution:

  • πŸ† Enterprise Ready: Professional-grade documentation and examples
  • 🌍 Multi-Platform: Works seamlessly on Android, iOS, Web, and WASM
  • πŸ’± Libya-Focused: Built-in Libyan Dinar currency handling
  • πŸ”’ Security First: Enhanced security practices and validation
  • 🎨 User Friendly: Beautiful UI with Arabic language support
  • πŸ› οΈ Developer Friendly: Comprehensive documentation and examples

πŸ“ˆ Migration Guide #

For users upgrading from previous versions:

  1. Currency Amounts: Use CurrencyConverter.dinarToDirham() for user-friendly dinar input
  2. Navigation: PopScope is now used instead of WillPopScope (automatic)
  3. Platform Support: Package now works on all platforms including Web/WASM
  4. Documentation: Refer to the new comprehensive README for updated examples

0.0.5 2024-XX-XX #

Changed #

  • Update dependency
  • Change file name

0.0.4 2024-XX-XX #

Added #

  • Add .yaml docs

0.0.3 2024-XX-XX #

Added #

  • Add doc comments

0.0.2+2 2024-XX-XX #

Changed #

  • Update name in Readme

0.0.2+1 2024-XX-XX #

Changed #

  • Update Readme and Add License

0.0.2 2024-XX-XX #

Fixed #

  • Fix Error with null data in onCompleteSucsses CallBack

0.0.1 2024-XX-XX #

Added #

  • First release, with simple example project
9
likes
150
points
186
downloads

Publisher

unverified uploader

Weekly Downloads

moamalat_payment package that allows you to integrate Moamalat payment gateway into your Flutter app .

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

crypto, flutter, flutter_inappwebview

More

Packages that depend on moamalat_payment