#timothy WU - stripe integration
1 messages ยท Page 1 of 1 (latest)
Hi there. I'm not super familiar with Next.js, but if it's just something built on top of React, then I don't see why not
And would you be using .NET server-side? We have a .NET library: https://stripe.com/docs/api?lang=dotnet
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
sorry i got away but i m back
that fact is i m building a static export of my project website
and everything is working just fine until i try to open the payment with stripe page
i can only get that
but i try it locally it s showing me stripe form
you can try if necessary the website on : http://20.199.80.153/
it is on the sidecart on the little button and then on payer
i m sorry it s all in french
So if you see in the console the route: /create-payment-intent doesn't exist on your server
That's why you're getting 404
So your server-side code probably hasn't been deployed properly
this is my static build of my project that running on IIS node, as you can see all the files are in html but as you said there is no api/create-payment-intent exported.
So i was wondering how can i export it ?
the server side is onthe folder page too
I'm not familiar with IIS and how to deploy that code unfortunately. We just help answer Stripe API related questions. Wish I could help with this, but I'm not familiar with the Stack. I would look up tutorials about how to deploy a node server to IIS
thanks for answering tho
very grateful for that
and is there a possibility to be in contact with another stripe staff that know how to deploy the stripe api with a static build ?
No problem! My colleague is online now @round idol but I'm not sure he's familiar with IIS. He will take a look when he gets some time. Issue isn't with your static portion. The issue is that the server-side code hasn't been deployed
๐ let me take a look
thank you very much
๐ฆ don't know much about IIS either but as my colleague suggested, the issue is with the request going to 404
yes the command npm run export permit to build a static version of my project but as you can see without the folder API.
so the page does not exist
do you know where i can find a solution for this problem ?
I don't think the issue is with the export but probably the way you're hosting it
I'd +1 what my colleague suggested earlier about looking up tutorials about how to deploy a node server to IIS
ok thanks you both for your advice, i ll try to look for a tutorials
but the fact is that node is working and stripe isn t ๐ฆ
I understand your frustration but the issue here is most likely the request failing to reach Stripe's API calls
anyway ty very much for your time and kindness