#Gaben-API-key-postman

1 messages ยท Page 1 of 1 (latest)

uneven gorge
#

Hello ๐Ÿ‘‹
How are you passing the API key? Can you make sure if the box beside Authorization is checked?

steep ibex
#

yes, here is the picture

#

I followed the instruction of Stripe video on youtube but it didn't work

uneven gorge
#

Can you double check if the API key is pasted completely? Sometimes it can get truncated while copy pasting it

#

Also it seems like you're making request to a local server first and then to Stripe
Can you check if your request header arrives with the API key in the header?

#

I wonder if your server-side library is initialized correctly with the API key

steep ibex
#

I'm using nestjs

#

I checked on google and I saw they initialize this way

uneven gorge
#

so, it seems like you are already setting API key from process.env

#

do you have a .env file in your server directory?

steep ibex
#

yes, I have double checked the key, and it's the same with the api key in the postman and the stripe dashboard too

#

oh I figured it out, it's regconize the .env file but it seems it couldn't read the variable in it, I replace the process.env with the api and it works

#

finally got it, thanks a lots

uneven gorge
#

Ah great! Glad you figured it out. ๐Ÿ™‚

#

NP! Happy to help