#ws2644
1 messages · Page 1 of 1 (latest)
Hello, can you send the ID of an example thing that is happening in livemode?
yes
where I can find my id
is showing this even my account stripe is in test mdoe
Did you make that Checkout Session via the API?
In that case, live or test mode is determined by what API keys you use
yes I do
You can get your test mode API keys on this page https://dashboard.stripe.com/test/apikeys
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
gotcha
They are different keys after the sk_ beginning so copy the whole key from the test dashboard
Change it everywhere that you want to make an API call in stest mode. Most people make it an environmental variable of some kind
Also I would recommend rolling your live key now, this server is public and sometimes bots scrape servers for images with keys like that. https://stripe.com/docs/keys#rolling-keys
Eem when I change my key is happend like this
which the owner bank is already verified
Do you know where that error came from? Was it from a specific Stripe API call?
mm not sure
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
Did it give you a specific error message?
test couple times is same once i switch key is showing that
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.
Ah those are Stripe errors
yes
So as those errors say, you have products with those IDs in live mode but not in test mode
oh how to do that
Test mode cannot access live mode objects and live mode cannot access test mode
Makes sense
You will need to create new products in test mode and use those IDs