#Зотов

1 messages · Page 1 of 1 (latest)

torpid oarBOT
stuck mortar
#

How can we help?

terse ermine
#

I change keys from test account for prod account but orders doesn created on the prod account

stuck mortar
#

Are they still being created in test mode then?

terse ermine
stuck mortar
#

It looks like you're using 2 separate Stripe accounts, right? One Stripe account for your test server and one for your prod server, correct?

terse ermine
#

yes

#

I showthat on video

stuck mortar
#

Correct, I just wanted to make sure we were aligned. So in that case, you should be using the test API keys from Account A for your test site, and the live API keys from Account B for your prod site, correct?

terse ermine
#

yes

stuck mortar
#

Okay, so the problem is that you're not actually changing your API keys somewhere. Somehow you're still making requests using Account A's test keys instead of Account B's live keys

terse ermine
#

But i change for all keys from prod, how we can check that ?

stuck mortar
#

Where is your code-base?

terse ermine
#

gitlab

stuck mortar
#

Right, but, like, do you have the ability to go through your code and view how the API keys are being set right now? Are you using an ENV variable?

terse ermine
#

In env end somethere else

stuck mortar
#

Sorry, I don't understand

terse ermine
#

Ok lets go step by step

#

Here from you'r code

#

I must use that ?

#

yes ?

stuck mortar
#

Correct. That will route to your production site for that specific Stripe object. That may not be the only place it gets set though, so you need to look through your code and look for other places where the keys are set. There is likely a secret API key in the codebase somewhere too

terse ermine
#

O use this instructions for keys

#

but order doesn create in corrdect plase

#

I fix

#

work

#

Thanks

stuck mortar
#

It's working now?

terse ermine
#

yes

stuck mortar
#

Ah okay, good to know! Glad you were able to get it working

torpid oarBOT