duticotac_api_flutter 0.1.1
duticotac_api_flutter: ^0.1.1 copied to clipboard
Payment API for Duticotac
0.1.1 #
Documentation only — no code change.
Fixed #
- README: install from pub.flutter-io.cn (
^0.1.1) and addhive_ce_flutter, which is needed forHive.initFlutter()and isn't re-exported - README:
getStatusreturnspayment-cancelled,payment-failedandpolling-timeoutinresponse.errorinstead of throwing them; the polling and error-handling examples now match this - README: the
TransactionModellisting now matches the actual fields (provider,currencyas aString, non-null dates,paymentUrl) - README: document
paymentUrlfor Wave, theappparameter, theerrorsmap,getProviderName/getProviderLogo, and the known issue with the offer cache - README: remove the unrelated in-app purchase troubleshooting section, and
move adapter regeneration into Contributing using
dart run build_runner
0.1.0 #
Breaking: the minimum Dart and Flutter versions move up, and connectivity_plus
crosses a major version. The package's own API is unchanged — code calling
Duticotac, the services or the models needs no edit.
Breaking #
- Minimum Dart SDK is now
^3.13.0(was^3.8.0) - Minimum Flutter is now
>=3.47.0(was>=1.17.0) connectivity_plusupgraded to^7.3.1(was^6.1.2)
Fixed #
getProviderName(PaymentProvider.creditCard)returned "Carte de crédit" with a decomposed accent (e+ U+0301). It compared unequal to the precomposed literal a caller would normally write, even though it rendered identically. The string is now NFC-normalised like the rest of the package.
Changed #
dioupgraded to^5.11.1,hive_ceto^2.20.0,hive_ce_flutterto^2.3.4- Dev dependencies:
flutter_lintsto^6.0.0,build_runnerto^2.16.1,hive_ce_generatorto^1.11.3 - Service constructors now use initializing formals, and the helpers in
utils/common.dartdeclare their return type, forflutter_lints6
Added #
- A test suite covering the models, the wire format, the mobile money and transaction endpoints, the polling and retry loop, and the offer cache
lib/hive_registrar.g.dart, emitted by the upgradedhive_ce_generator
Known issues #
DuticotacOffer.getrefreshes a cache hit without awaiting or catching the result. When that background refresh fails, the error escapes onto the caller's zone as an unhandled async error.
0.0.19 #
Fixed #
- Fixed DNS lookup failures when returning from Wave payment app
- Added
connectivity_pluspackage to handle transient network issues - Implemented smart retry logic with exponential backoff for network errors
- Added connectivity checking before retrying failed requests
- Improved error handling to distinguish between retryable and non-retryable errors
Changed #
- Made
getStatus()method parameters configurable (intervalMinandtimeout) - Enhanced polling logic to handle app resume scenarios gracefully
0.0.18 #
- Previous release
0.0.1 #
- Initial release