#Abraar
1 messages · Page 1 of 1 (latest)
Could you elaborate a bit more? Which link is dead?
Can you access to your deployed site yourself?
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
Can you share the "dead" link?
You would need to check your Stripe requests log https://dashboard.stripe.com/test/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
to see if you created it successfully
and you can paste that b.session.url here
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
Can you log the link created via vercel? I want to see the link
Your server is returning 500
meaning your deployed backend server doesn't work. You would want to check your server log
You are returning 500 with json of e.message
so you can check the response of that ajax request
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
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!
I don't really know. It largely depends on the platform your are deploying to. I am not familiar with Vercel but here seems to be their Doc: https://vercel.com/docs/concepts/projects/environment-variables