#Foloex-API

1 messages · Page 1 of 1 (latest)

torn dirge
#

It's something we want to support in the future. Currently we only have Test Mode and Live Mode, and for anything other than Production you would want to use Test Mode

opaque salmon
#

Can dev mode account be instantiated dynamically ?

torn dirge
#

You could pre-create separated Stripe Account for each of your environment (ie. one for Dev, one for Test, one for Staging), then enable Stripe's Test Mode on each account

opaque salmon
#

unfortunately they're not predetermined, they are based on feature branch on our git repo

#

so I don't know in advance how many accounts I will need

torn dirge
opaque salmon
#

Newly created account are in dev mode ?

torn dirge
#

There is no "dev" mode. A Stripe account only has "Test Mode" and "Live Mode", separated by the API key

opaque salmon
#

Sorry, I meant test mode

#

So using only the API I can create an account, put it in test mode, get the keys and define the callback url ?

torn dirge
#

Sorry I am reconfirming it

#

Hmm wait a min

opaque salmon
#

ok

torn dirge
#

Okie I just tested it. Go along with above guide and you will need to call 2 APIs, then a series of manual steps to complete registration of an account

#

then after that, login into and obtains its secret API Key

opaque salmon
#

this is for each staging environment or only once ?

torn dirge
#

For each environment that you want a separated account in. I agree it's not dynamic. To create an account Stripe does need to verify a lot of information

opaque salmon
torn dirge
#

I would recommend

  1. Revisit the policy of one account per git branches, make them able to test on same account
  2. Pre-create a pool of accounts and let your environment slowly taking them
opaque salmon
#

ok, thanks

torn dirge
#

That's the same thing to my link above

#

Account and Account Link

opaque salmon
#

ok, I will need to read the doc again to understand all the different models of the Stripe API

#

but from what you say, it seems doable at least