#sparsh-jain_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/1366380097749258330
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share:
- The full
cs_xxxID (no need to redact it) - The code you're using that throws the error
cs_test_a1jfFxqCjtg4V1xaGUrH3nOmQ7ioroojNdyOEP2LgNY8WLda2y7wKksv2n
And what code throws the error?
I suspect it's likely a API key mismatch. You're creating Checkout Sessions on acct_1QzvMmRho8mCAgpo
Make sure you're using the same API key elsewhere
should i share the api key i am using?
No, you should just check that they're the same
Or, share the code that causes the error
Well, that's the PHP code that creates the session. We know that works
Can you just share the specific snippet here
I'd check to make sure that your STRIPE_PUBLIC_KEY used to initialise Stripe.js is from the same account (acct_1QzvMmRho8mCAgpo)
The error implies it isn't
okay, thanks. let me check and get back to you on it
The account id you shared and the account id of my account is different, but i am using the api keys that are created by my account
my account id is acct_1Qzv3mEQ9Tnc8fFf
hi! I'm taking over this thread.
Hello
The account used to create the Checkout Session you shared is acct_1QzvMmRho8mCAgpo. It was created by a Sandbox account.
So yes looks like you are mixing your API keys.
please double check your dashboard and your code, and make sure your backend/frontend keys match.
ok, let me get back after double checking it ๐