#MandalorianIV
1 messages ยท Page 1 of 1 (latest)
Hi toby
Hi ๐ can you tell me more about what is giving you trouble?
I'm actually using stripe with flutter_stripe
I was testing all card types and one of the cards is not supported
so it pops error during debug mode
I want to catch the "card is not supported" error and show something about error to the. user
out of topic, are you guys like gatekeeper for stripe discord ๐
so you guyz are paid solution center ๐
are you there?
Hi there
Oh flutter_stripe is a third party library, so we're not familiar with how to use it
It wasn't developed by us
We're Stripe developers that staff this Discord to assist folks in using our API, but we can only support Stripe-developed libraries in here
That would be good if you guyz add flutter sdk to your SDK's
๐ฆ
can you show me an example that you handled a card not support error in react native codes? so I may understand the logic.
I need to handle confirmPayment
I don't believe we have an example that shows error handling for that specific error. What part are you confused about though? You have the else block in your code above where you catch the error. How you handle it and display a message to the user is up to you.
I mean, if a card is not supported, what are the react native developers do?
its a quite generic problem
If a card isn't supported for a transaction there's nothing you can do
You just show the error to the customer
Tell them to try a different card
You already do though? That's what the else block in your code does
Just check the error code
the code that I shared above is in the flutter_stripe package
I can not do any change on that package
let me show you how I try to handle on my art
part
somehow I managed to catch with .onError .
Thnx
I hope one day you guys integrated flutter to your SDKs officially ๐
Ah glad you got it sorted out