#Gomar-API-key-change

1 messages ยท Page 1 of 1 (latest)

dusk vault
#

Hello ๐Ÿ‘‹
What type of integration are you running here? Are you using a third-party plugin or have you built your own system?

vast bone
#

Hi ! Thanks for helping me ! I'm using the stripe package for nextJS

#

I'm using your checkout session

#

If I go on network, the problem is from here

dusk vault
#

We don't have an official nextJS package so I'm not sure how that works but I can try to help
Can you explain your flow with the code? Feel free to share examples

vast bone
#

Oh yes sorry I took the react and JS

#

This is my code in the api

#

And this is where I'm calling the checkout session

#

Everything is implemented with environment variables, I checked my code if there was the publishable API key writen directly but nothing

dusk vault
#

Gotcha. Thanks and you've changed both, the publishable key and the secret key?

vast bone
#

Yes I changed the publishable, the secret and the product key

dusk vault
#

not sure what you mean by product key

#

do you mean the product ID?

vast bone
#

yes sorry the product id

dusk vault
#

can you print out the checkout session object server-side and share it here?

vast bone
#

Let me checke because the problem is from my server and not from my local

dusk vault
#

ah okay! ๐Ÿ‘

#

most likely some configuration is still using the old key ๐Ÿค”

vast bone
#

Ok so I found the problem ! I relaunched the build after the changes but it seemed that the server didn't take the new variables in consideration ๐Ÿ˜‘ , so I rebuilt again and now the proper keys are used ๐ŸŽ‰ . Sorry for the disturbing, and thanks a lot for your help !

dusk vault
#

All good ๐Ÿ™‚ Have a good one