#DustSwiffer
1 messages · Page 1 of 1 (latest)
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
Testing instead production*
Does this mean i need to create a separate key ?
you already have different keys for test mode and live mode for your Stripe account
i don't quite understand the context here
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
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.
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?
on your Stripe account - you can access your test keys here : https://dashboard.stripe.com/test/apikeys
your live keys are here : https://dashboard.stripe.com/apikeys
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
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
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
the keys don't expire really by default, did you see otherwise?
my colleague says he is not sure anymore. he thought he was :).
We will use the test keys. thank you