#Gustavo-react
1 messages ยท Page 1 of 1 (latest)
hiii
how are you
then
i have problem
I generated react, then my api dont word
work*
I'm great! React is a client/frontend library to collect payment information. You can't create a customer from the frontend. Customer can only be created from your server: https://stripe.com/docs/api/customers/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
when, i up in heroku. have problem security low.... because google chrome.
I'm not able to upload headers
only static ๐ญ
my react/node is next.js... he don't generate api
You can refer the payment quick start guide to set up your frontend React and backend Node: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements&html-or-react=react
API can be created in NextJS: https://nextjs.org/docs/api-routes/introduction
Then refer back to customer creation in Node after previous steps are completed: https://stripe.com/docs/api/customers/create?lang=node