#Foloex-API
1 messages · Page 1 of 1 (latest)
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
Can dev mode account be instantiated dynamically ?
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
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
So you can use Create Account API, specify the type to 'standard' to make sure it's a full-fledged account: https://stripe.com/docs/api/accounts/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Newly created account are in dev mode ?
There is no "dev" mode. A Stripe account only has "Test Mode" and "Live Mode", separated by the API key
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 ?
Sorry I am reconfirming it
You would need 2 API and a few manual steps on UI to start using an account: https://stripe.com/docs/connect/standard-accounts
Hmm wait a min
ok
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
this is for each staging environment or only once ?
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
If I do the steps from: https://github.com/stripe-samples/connect-onboarding-for-standard/blob/master/server/node/server.js wouldn't it work ?
I would recommend
- Revisit the policy of one account per git branches, make them able to test on same account
- Pre-create a pool of accounts and let your environment slowly taking them
ok, thanks