#jin_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1367259223209283666
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there - I don't know what CPanel is. Could you elaborate?
hello, of course!
CPanel is where I'm hosting my site to be ran publicly, it's a file manager and website host
when I'm running my code locally I have no problem getting to the sandbox checkout, but when it's done on the live site it gives me the error
stripe._error.AuthenticationError: No API key provided.
i was thinking potentially you can't sandbox on live servers?
Hi hi! I’m going to be taking over for my colleague here.
Based on that error, your API key doesn't seem to be available to your code; unfortunately there's nothing I can do from here to help diagnose why that might be. I'd suggest maybe having a look at how your code is grabbing the key and from where, and then make sure that 'where' actually has the key in it.
Hello, thank you! I’m out for dinner now I’ll check in a couple hours if that’s okay
For now, just confirming you can use sandbox on a live server and not just local host?
That's correct, yes. It's just a question of which API keys you use.
This thread will be closed by then - we close stale threads - but it'll always be available for you.
Okay, for some reason the same setup works locally with .env
Did you add the keys to the environment on your server?