Skip to main content

upi_link 0.1.2 copy "upi_link: ^0.1.2" to clipboard
upi_link: ^0.1.2 copied to clipboard

Build and parse UPI payment links (upi://pay) in pure Dart, with validation and exact amounts.

0.1.2 #

  • UpiLink.parse now reads real-world QR codes. Keys outside the supported fields (mode, purpose, orgid, sign, app-specific keys) are kept in the new extraParameters map instead of causing a FormatException.
  • Add UpiLink.extraParameters and an optional extraParameters constructor argument. toString() writes them after the supported fields.
  • parse treats empty supported values (am=) as absent, matches supported keys and cu=INR case-insensitively, ignores empty segments and a trailing / after pay, trims whitespace, and reads HTML-escaped &.
  • A supported key repeated with the same value is accepted; different values still throw.
  • An unencoded & inside a value (pn=A&B%20Traders) is read as part of the value instead of failing the link.
  • Add tool/simulate.dart, a parser simulation (round trip, real-world variants, fuzz), and record known limitations in doc/parser-simulation.md.

0.1.1 #

  • Add CI badge to the README. No API changes.
  • First release published automatically from GitHub Actions.

0.1.0 #

  • Initial release.
  • UpiLink builds upi://pay links from 8 NPCI parameters: pa, pn, am, tn, tr, mc, tid, url.
  • UpiLink.parse and UpiLink.tryParse read links back, strictly.
  • UpiLinkException names the field that failed validation.
0
likes
160
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Build and parse UPI payment links (upi://pay) in pure Dart, with validation and exact amounts.

Repository (GitHub)
View/report issues

Topics

#upi #payments #india #deep-linking #parser

License

MIT (license)

More

Packages that depend on upi_link