Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

"code":"api" #755

Closed
santiseijas opened this issue Apr 23, 2021 · 2 comments
Closed

"code":"api" #755

santiseijas opened this issue Apr 23, 2021 · 2 comments

Comments

@santiseijas
Copy link

hi everyone, i just want to ask what is the meaning of errorCode: api?? this is my error {"framesToPop":1,"nativeStackAndroid":[],"userInfo":null,"message":"Your card is not supported.","code":"api"} and we are getting this on createPaymentMethod with this card 6200 0000 0000 0005 on Spain.
Thank you so much!!

@plowman
Copy link

plowman commented Apr 29, 2021

Hey @santiseijas, this means the error code is coming back from the Stripe API and not from this library.

In your case, the problem is likely that you need to use a Spain-specific credit card test number. You can see here for examples from each country.

@fbartho
Copy link
Collaborator

fbartho commented Jun 20, 2023

Closing this ticket, so that new users don't think this project is still active.

Stripe does not want you using this, and you will find pain if you do; Please migrate to the official @stripe/stripe-react-native package, for your user's safety, and your developer's sanity!

See more:

@fbartho fbartho closed this as completed Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants