ezet / stripe-sdk

A simple and flexible Stripe library for Flutter with complete support for SCA and PSD2.
https://pub.dev/packages/stripe_sdk
Other
137 stars 137 forks source link

Method confirmSetupIntent of StripeApi throws UnsupportedError (ver. 5.0.0-nullsafety.0) #129

Closed francislions closed 3 years ago

francislions commented 3 years ago

I'm trying to create and confirm a setup intent in the new version 5.0.0-mullsafety.0, but without success, the method confirmSetupIntent of StripeApi gives me this exception: UnsupportedError (Unsupported operation: Cannot set value in unmodifiable Map) The method confirmSetupIntent is called with only the parameter clientSecret. I'm using the _stripesdk from the 2.8.0, and i have even used the confirmSetupIntent on version 4.0.2 and it always worked. Do you know why there is this error?

ezet commented 3 years ago

I will look into this. @josxha Maybe you have any ideas?

josxha commented 3 years ago

My bad, I was not aware that the map becomes unmodifiable when I assign a default value to it. Created https://github.com/ezet/stripe-sdk/pull/130