#sabrinalh5
1 messages ยท Page 1 of 1 (latest)
Hi ๐ not for Next.js specifically, but our general guide for using a Setup Intent to set up a Payment Method for future usage can be found here:
https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
Thanks, toby. We are successfully generating a client secret on our server side and return that back to the client. We are running into issues when rendering the Setup element.
Do you have any suggestions?
We just ran the code in the example from the link you provided and it did not work ๐ฆ
What are the "issues"? It's hard to provide suggestions without understanding what problems you're running into.
We are getting the stripePromise and clientSecret, they both print to the console. However, the payment element is still not rendering, despite following the structure of the example code from the Stripe docs. What other information can we provide that would be helpful?
Are you seeing any errors? From either the frontend or backend side of your flow?
Both flows seem to be working. Error is that it's not rendering anything to DOM besides an unstyled "Submit" button from the <SetupForm/> component on Page
Both 'stripePromise' & 'clientSecret' are logged to console successfully
When you check your server logs, and the console in your browser, do you see any error messages?
Just checked - not seeing anyting. Is there something you're expecting us to find?
Yes, if the Element can't be mounted, I'd expect to see an error indicating why somewhere.