#Elisei - invalid_request_error
1 messages ยท Page 1 of 1 (latest)
Maybe I need to add some NEXT_SK in front of defined variable (STRIPE_SECRET_KEY) ?
Currently I have:
In your client side code, how are you loading your public key?
You can to test it now, but you should not need to hard code this. That error message implies that the variable is undefined when you try to load it.
Can you load other variables from process.env?
Is it possible that your code is working with an old version of this config that doesn't have the NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY?
Have you restarted your process since adding this code?
Do you want to try it without NEXT_PUBLIC_?
It looks like that is part of that variable's name from the code you sent.
Oke, I'll give it a try ๐
That being said, this is your environmental variable so unfortunately I don't have much insight on the syntax for how you should load it