#remi-testmode

1 messages · Page 1 of 1 (latest)

pseudo temple
#

hi! test mode is entirely independent so using it doesn't affect production

#

for a staging environment, you can use test mode of your normal Stripe account or you could create a separate account just for that and use its test mode

austere hare
#

Ok, thanks. I guess will go with the testing organization so if it's get too messed up we could delete it and create a clean new one. Is it possible to create test organization on the fly using the API ?

pseudo temple
#

no, you have to create new accounts via the dashboard (using the dropdown in the top left of the Stripe dashboard to create a new account)

austere hare
#

is it allowed to use Selenium to create account and delete them after ?

pseudo temple
#

I would say no

#

obviously we can't stop you but it's not what expect.

austere hare
#

I understand, it's just that we need to setup the environment automatically so we could reuse the same environment but we have to make sure they aren't any collision between our different environment. One solution would be to create and maintain a pool of organisation. The other would be to create a dedicated organization for each environment but this couldn't be done automatically.

#

So if you say it's illegal to use Selenium or we could get banned or something I will go with the pool of organizations. But it not as good.

pseudo temple
#

we don't have good answers or solutions for this type of testing

#

we don't have a policy on using Selenium or would actively bank you or something, but obviously you could break at any time.

Officially I would say the recommended way is to use your one single main Stripe account, and use its test mode your staging environment. It's not ideal because the data is not cleared etc, but there's no ideal solution here unfortunately!

austere hare
#

ok, that's clear, thanks

pseudo temple
#

also you shouldn't really be running Stripe in your CI, since then your CI breaks if our API is down

#

ideally you'd mock out the Stripe API calls, but we also don't have any good resources/mocks there unfortunately