#ws2644

1 messages · Page 1 of 1 (latest)

ebon ivyBOT
obtuse steeple
#

Hello, can you send the ID of an example thing that is happening in livemode?

jolly niche
#

yes

#

where I can find my id

#

is showing this even my account stripe is in test mdoe

obtuse steeple
#

Did you make that Checkout Session via the API?

#

In that case, live or test mode is determined by what API keys you use

jolly niche
#

yes I do

obtuse steeple
jolly niche
#

here is my api key

#

change sk_live to test ?

obtuse steeple
#

So in the Authorization header, you will want to replace the sk_live_.... key with the sk_test_... key from the page that I sent you

jolly niche
#

gotcha

obtuse steeple
#

They are different keys after the sk_ beginning so copy the whole key from the test dashboard

jolly niche
#

got it

#

should I change in the flow or whole api key

obtuse steeple
#

Change it everywhere that you want to make an API call in stest mode. Most people make it an environmental variable of some kind

jolly niche
#

Eem when I change my key is happend like this

#

which the owner bank is already verified

obtuse steeple
#

Do you know where that error came from? Was it from a specific Stripe API call?

jolly niche
#

mm not sure

obtuse steeple
#

Definitely debug your code to find where that error came from. It doesn't look like a Stripe error but your code may have thrown it in response to a stripe error

jolly niche
#

ok

#

they said is something wrong here

obtuse steeple
#

Did it give you a specific error message?

jolly niche
#

like this

ebon ivyBOT
jolly niche
#

test couple times is same once i switch key is showing that

obtuse steeple
#

Unfortunately I am not familiar with the UI that you are using so I'm not sure how to get the specific error from it.

jolly niche
#

does those help ?

obtuse steeple
#

Ah those are Stripe errors

jolly niche
#

yes

obtuse steeple
#

So as those errors say, you have products with those IDs in live mode but not in test mode

jolly niche
#

oh how to do that

obtuse steeple
#

Test mode cannot access live mode objects and live mode cannot access test mode

jolly niche
#

Makes sense

obtuse steeple
#

You will need to create new products in test mode and use those IDs

jolly niche
#

oh fk i see

#

thx