#Abraar

1 messages · Page 1 of 1 (latest)

zinc doveBOT
foggy bolt
#

Could you elaborate a bit more? Which link is dead?

#

Can you access to your deployed site yourself?

narrow cloud
#

the link to the stripe checkout page is dead

#

but it works locally

#

i can access to my deployed site fine and everything functions fine except for the stripe checkout page

foggy bolt
#

Can you share the "dead" link?

narrow cloud
#

this is the code for the link

foggy bolt
#

to see if you created it successfully

#

and you can paste that b.session.url here

narrow cloud
#

it says its created successfully, as stated before the link works fine locally

#

but on my deployed version through vercel the link just doesnt work

foggy bolt
#

Can you log the link created via vercel? I want to see the link

narrow cloud
foggy bolt
#

Your server is returning 500

#

meaning your deployed backend server doesn't work. You would want to check your server log

narrow cloud
#

this is my api checkout page

#

the first lines

foggy bolt
#

You are returning 500 with json of e.message

#

so you can check the response of that ajax request

narrow cloud
#

but i did provide the api key from stripe

foggy bolt
#

Maybe your deploying server doesn't have environment variable setup correctly

#

the process.env.STRIPE_SECRET_KEY

#

It is often different between local and deployed platform

narrow cloud
#

youre saying it should be set up differently in my .env file?

#

i did some digging, it was a problem with the naming of my .env file, switched it to production, it works now

#

thank you!

foggy bolt