#DustSwiffer

1 messages · Page 1 of 1 (latest)

calm cedarBOT
mental oar
#

hello! what do you mean when you say to see if the api isnt changed or whatever,?

In most cases, you would have separate environments for test and production, and the respective environment would use the correct key which is set as an env variable

pale plinth
#

Testing instead production*

pale plinth
mental oar
#

you already have different keys for test mode and live mode for your Stripe account

#

i don't quite understand the context here

pale plinth
#

We are just having integration test running.

According to the documentation we are not allowed to use the key for testing while being in live mode. And as the application still live while preparing the new release we need to test several things.

#

i assume the production key is not the way to test

mental oar
#

All testing should be done in test mode i.e. using the test key. If you want to do a one time run in production, i wouldn't classify that as testing any longer

#

Testing in live mode using real payment method details is also prohibited by the Stripe Services Agreement.

pale plinth
#

but i cant bring production down

#

by switching to test mode

#

we know but can you create multipe environments on one stripe account or do i need to create 2 accounts one for testing env and one for prod?

mental oar
pale plinth
#

do the test keys also work when in live mode?

#

if not i will have to create a separate account for the integration test. then the issue is solved but not the way we expected

mental oar
#

If you use the test key, your requests will always be made in test mode, if you use the live key, your requests will always be made in live mode

pale plinth
#

okay that's promising.
Last question:
Is there a way I can make the tests keys not expiring because of DevOps we use automated test and we want prevent it from getting blocked by an expired key

gaunt palm
#

the keys don't expire really by default, did you see otherwise?

pale plinth
#

my colleague says he is not sure anymore. he thought he was :).

We will use the test keys. thank you