#mariano-cors-react

1 messages · Page 1 of 1 (latest)

smoky ospreyBOT
astral gorge
#

What's the cors error?

#

Is it breaking functionality?

obsidian hare
#

Is not even loading the component, I already have an integration with CardElement in the front and the backend is working fine.

#

By just changing <CardElement /> by <PaymentElement /> it shows that error.
BTW: I'm working in a local environment. I don't know if there's something else that I should do on my end

astral gorge
#

Hm hard to know what all you're doing unless I can see all your code. What language for the backend are you using?

#

Node?

smoky ospreyBOT
#

mariano-cors-react

obsidian hare
#

yes, Node, I've been following this https://www.youtube.com/watch?v=e-whXipfRvg

In this episode, you’ll learn how to accept payments with the Payment Element using React Stripe.js. We’ll also see how to leverage many types of payment methods with one single integration using automatic payment methods.

Presenter

Matthew Ling - Developer Advocate at Stripe - https://twitter.com/mattling_dev

Table of contents

00:00...

▶ Play video
astral gorge
#

Not familiar with that video

#

We have this quickstart though

#

Recommend you try downloading that sample and modifying to see if you get the same thing

obsidian hare
#

great, will take a look again, thanks a lot!