#jpsingh345
1 messages · Page 1 of 1 (latest)
hi! can you clarify the question a little? what's a "React app" specifically, what specific part of the API, what problem did you run into?
Actually, I just want to use some of the APIs from Stripe like fetching the customer cards, etc. So I have created a FrontEnd App using ReactJS.
you will need to create a backend api
So its not possible on Front End just like we have this feature in Android
if there are the endpoints you can use requests with your api key to ask data
using a library like axios or fetch etc
hmm... So is there any javascript library which i can use instead of calling Fetch or axios?
axios is a library already
i don't think so @stripe/react-stripe-js this library can full fill my requirement
No I am asking Is there any stripe javascript library which i can use to fetch the customer credit card list?
not sure, not even sure if you can see credit card data, if you can that's a big problem
Yeah actually we can see the last four digit of the credit card only, not full details, so we can display the user.
Ok Thanks @jovial lotus , so we have only one way that's using fetch or Axios right now
that will make an http request you can use to request the data from the api
you would call https://stripe.com/docs/api/payment_methods/customer_list on your backend server and return any information you need to render your frontend UI such as the brand/last4 of the card etc to put into a table, back to the frontend.