#mariano-cors-react
1 messages · Page 1 of 1 (latest)
Is not even loading the component, I already have an integration with CardElement in the front and the backend is working fine.
React can't reach the error:
""A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.""
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
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?
mariano-cors-react
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...
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
great, will take a look again, thanks a lot!