Flutter - Stripe : type 'List<dynamic>' is not a subtype of type 'Map<String, dynamic>?' error in method_channel_stripe.dart:263 #1346
Unanswered
Artpel1805
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It's my first post here.
I'm struggling with a Stripe integration in a Flutter project and can't find any other similar issue or problem on the web.
I'm using flutter Bloc and Stripe.
Once I run the function
await Stripe.instance.presentPaymentSheet();
and try to fake a payement with the credit card 42424 42424 42424 42424. I have the above error:I'm creating the payment intent in my backend and everything seems to be fine with this part in my Stripe Dashboard
Here is a short reproduction of my code:
pubspec.yaml
stripe_bloc.dart
stripe_api.dart
Hope guys could help me :) Thanks
I already try to make my code as minimal as possible.
I also try to call the stripe API directly in my front end and still get the same error so I think my backend is not involved in this
Beta Was this translation helpful? Give feedback.
All reactions