dart_wing 1.0.0 copy "dart_wing: ^1.0.0" to clipboard
dart_wing: ^1.0.0 copied to clipboard

Wing Bank online payment (Web SDK v2) client for Dart and Flutter. Authorize a payment, open Wing's checkout page, inquire transactions, and decrypt payment callbacks.

1.0.0 #

First release: a Dart client for Wing Bank's online payment Web SDK v2 (spec 2.0.3).

  • authorize: encrypts the payment (AES-256-CBC payload) and signs it (hash), and returns the token and Wing's payment page (confirmUrl); WEBAPP (return URL) and MOBAPP (deep link) integrations
  • inquiry: transaction details, with isPaid(price) to reject amounts below your price as Wing requires
  • decryptCallback / parseCallback: decrypt the contents Wing POSTs to your callback URL
  • payloads, hashes and callbacks reproduce the known answers computed with PHP's openssl_encrypt (spec/test-vectors)
  • Wing business errors are returned in status; transport and local failures throw WingException with a WingErrorType and isRetryable
0
likes
160
points
57
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Wing Bank online payment (Web SDK v2) client for Dart and Flutter. Authorize a payment, open Wing's checkout page, inquire transactions, and decrypt payment callbacks.

Repository (GitHub)
View/report issues
Contributing

Topics

#payment #wing #cambodia #checkout

License

MIT (license)

Dependencies

crypto, dio, json_annotation, pointycastle

More

Packages that depend on dart_wing