#sparsh-jain_api

1 messages ยท Page 1 of 1 (latest)

golden tuskBOT
#

๐Ÿ‘‹ 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.

midnight kayak
#

Can you share:

  • The full cs_xxx ID (no need to redact it)
  • The code you're using that throws the error
honest wigeon
#

cs_test_a1jfFxqCjtg4V1xaGUrH3nOmQ7ioroojNdyOEP2LgNY8WLda2y7wKksv2n

midnight kayak
#

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

honest wigeon
#

should i share the api key i am using?

midnight kayak
#

No, you should just check that they're the same

#

Or, share the code that causes the error

honest wigeon
midnight kayak
#

Well, that's the PHP code that creates the session. We know that works

honest wigeon
midnight kayak
#

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

honest wigeon
#

okay, thanks. let me check and get back to you on it

golden tuskBOT
honest wigeon
#

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

digital quail
#

hi! I'm taking over this thread.

honest wigeon
#

Hello

digital quail
#

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.

honest wigeon
#

ok, let me get back after double checking it ๐Ÿ™‚