#timothy WU - stripe integration

1 messages ยท Page 1 of 1 (latest)

leaden stratus
#

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

hexed bramble
#

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

#

it is on the sidecart on the little button and then on payer

#

i m sorry it s all in french

leaden stratus
#

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

hexed bramble
#

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

leaden stratus
#

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

hexed bramble
#

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 ?

leaden stratus
#

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

round idol
#

๐Ÿ‘‹ let me take a look

hexed bramble
#

thank you very much

round idol
#

๐Ÿ˜ฆ don't know much about IIS either but as my colleague suggested, the issue is with the request going to 404

hexed bramble
#

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 ?

round idol
#

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

hexed bramble
#

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 ๐Ÿ˜ฆ

round idol
#

I understand your frustration but the issue here is most likely the request failing to reach Stripe's API calls

hexed bramble
#

anyway ty very much for your time and kindness