#jin_api

1 messages · Page 1 of 1 (latest)

left valleyBOT
#

👋 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.

true bluff
#

Hi there - I don't know what CPanel is. Could you elaborate?

sterile walrus
#

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?

left valleyBOT
zinc cipher
#

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.

sterile walrus
#

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?

zinc cipher
#

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.

sterile walrus
#

Okay, for some reason the same setup works locally with .env

zinc cipher
#

Did you add the keys to the environment on your server?

sterile walrus
#

Yes, in the .env on cpanel

#

I’ll play around with it in a couple hours and get back to you, should I dm or open another ticket?