#hollydaly_code

1 messages ยท Page 1 of 1 (latest)

signal hemlockBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1252259014075617372

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

willow fableBOT
willow fableBOT
honest prism
#

Hi ๐Ÿ‘‹ have you added logging to your code to figure out exactly what line is causing that error to be thrown?

#

My guess based on what you shared, is that your secret key isn't set in your environement variables:
process.env.STRIPE_SECRET_KEY

final cypress
#

which file does that need to be added to?

lunar knoll
#

๐Ÿ‘‹ stepping in here

#

Generally you would have a .env file with your environment variables

#

But really I can't tell you what file as that is dependent on your project

final cypress
#

when i debug these show the correct values according to the dashboard

const STRIPE_SECRET_KEY = process.env.STRIPE_SECRET_KEY;
const STRIPE_PUBLISHABLE_KEY = process.env.STRIPE_PUBLISHABLE_KEY;

lunar knoll
#

Have you tried hard coding your API key for a test?

#

That's what I would recommend

final cypress
#

yeah it still presents me with the error

#

i tried live and testmode

lunar knoll
#

You sure things aren't getting cached?

#

Have you done a hard restart of your server?