#hassanxelamin - NextJS
1 messages · Page 1 of 1 (latest)
I have my key in a .env.local file
hi 👋
grabbing it here to initiate checkout
reading
this is the checkout function that is fired when i click buy now
Could you log the value of the API key in your code and verify it exists in runtime?
Just did it. It exists in runtime
Still gives this error: "Uncaught (in promise) IntegrationError: Invalid API Key provided: "pk_test**************************************************************************************************L5","
I triple checked the test key in my developers section of stripe dashboard and it is correct
Did the API error message change or did you reword it earlier?
I just didn't add the part that included the abbreviated test key before. It is still the same.
Could you send the key in plain text so we can test it?
"pk_test_51KBQ64KoVJaPayW9PQlF3unw9rXyFHkRAviloCiBf5S5cRKbkHuPlKP2I6S30hkBmHvsYfHfTrEW6rpcvYgGm6RW00zIk0pQL5"
Oh oh oh. You need to remove the quotes. After that it should work