#MandalorianIV

1 messages ยท Page 1 of 1 (latest)

gleaming tinselBOT
light lichen
#

Hi toby

pallid ivy
#

Hi ๐Ÿ‘‹ can you tell me more about what is giving you trouble?

light lichen
#

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 ๐Ÿ˜„

gleaming tinselBOT
light lichen
#

are you there?

sour zodiac
#

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

light lichen
#

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

sour zodiac
#

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.

light lichen
#

I mean, if a card is not supported, what are the react native developers do?

#

its a quite generic problem

sour zodiac
#

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

light lichen
#

yes If I can catch ๐Ÿ˜„

#

that is my aim

sour zodiac
#

You already do though? That's what the else block in your code does

#

Just check the error code

light lichen
#

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 ๐Ÿ˜„

sour zodiac
#

Ah glad you got it sorted out