-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MobilePay Purchase flow fails - State is null #350
Comments
Just to add to this, in my older version of the generated code, state is correctly marked as nullable. Whether this change is caused by a change in the library that generate the httpClient code, or the OpenApiSpec I'm not sure of yet |
Looked at this a bit more, findings so far:
Conclusion so far: However, it does appear that some updates will be required on the app side as well to accommodate this change in the generated code. Those of us using older versions of flutter/ dart might also need to update in order to get everyone's dev environment inline with the rest. |
Bug is introduced in the package upgrade of Analog Core does not support nullability officially yet. This requires an update of the codebase. See issue AnalogIO/analog-core#82 Probably is it the best to rollback the package to the old version for now |
MobilePay purchase flow fails when trying to create MobilePayPaymentDetails object after geting response from PurchaseRepository
PurchaseRepository.initiatePurchase returns a response with
state = null
and causes an exception:CastError (type 'Null' is not a subtype of type 'String' in type cast)
The text was updated successfully, but these errors were encountered: