vietqr_gen 1.0.0
vietqr_gen: ^1.0.0 copied to clipboard
A zero-dependency, type-safe Dart package for generating VietQR payload strings compliant with NAPAS 247 specification.
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.0 2024-01-XX #
Added #
- Initial release of VietQR Generator package
- Support for generating NAPAS 247 compliant VietQR payload strings
- Static QR code generation (user enters amount)
- Dynamic QR code generation (pre-filled amount and message)
- Comprehensive Bank enum with all major Vietnamese banks and their BIN codes
- Vietnamese text sanitization for QR code compatibility
- CRC-16 checksum calculation for payload validation
- Type-safe API with proper error handling
- Zero external dependencies
- Complete documentation and examples
Features #
- 33+ supported Vietnamese banks
- Automatic Vietnamese accent removal
- Input validation for account numbers and amounts
- TLV (Tag-Length-Value) format implementation
- Cross-platform compatibility (Flutter, Dart VM, Web)