Reputation: 52208
Is there a quick way to create a test account that has already gone through onboarding?
Reason being, I could create a completely new account (e.g. account = Stripe::Account.create({type: 'express',})
and manually run through the few minutes of account setup to ensure the account has completed onboarding, but that's a little tedious.
Is there any quick way to create a test stripe account that has completed onboarding, but nothing more?
Example
Here's ideally what I'd like to do
# -- some code that creates a test account that has already completed onboarding --
Stripe::Account.create_login_link(account.id)
# the above line should succeed, instead of:
Stripe::InvalidRequestError: Cannot create a login link for an account that has not completed onboarding.
Note: this question happens to use ruby, but my guess is if it's possible in ruby then it's possible in any of the languages in the stripe docs.
What I know so far
I checked the stripe testing docs for any reference to account creation with onboarding complete but couldn't spot it
Upvotes: 2
Views: 1520
Reputation: 5847
There's unfortunately no way to create a completely onboarded test account through a magic parameter. The only way is to use the test values in the testing docs that you found and pass those in when creating the account.
Upvotes: 2