#ivan_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1226833405803757630
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello there! You won't be able to write end-to-end tests for our hosted UIs unfortunately
So, is there any way to avoid manual account onboarding?
If you want to onboard accounts into certain states then you'll need to do that entirely via the API using the test data we provide: https://docs.stripe.com/connect/custom/onboarding#api-based-onboarding
@round marten, I guess, I've tried this flow. But why I have 403 here?
I tried the next algorithm:
- Go to the onboarding link
- Get an account id from the link
- Use an api Stipe.Account.modify(..) to onboard this account (Have 403 error here)
Why would you create an Account Link? Can you share the ID (req_xxx) of the API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
@round marten , I'm not creating an account link
Our application creates an account link and I need to work with it from testing side to automate data preparation.
req id
req_nzihlYUdVVfqiq
Go to the onboarding link
What is an onboarding link in this context then?
This is because it's a standard account โ you can only mutate certain fields on those accounts
So, we have a hosted onboarding approach in our app. So, I'm using a link that our app generates to redirect to the stripe account onboarding page. Then I parse onboarding link to get an account id and then work with it via api.
https://connect.stripe.com/setup/s/acct_*****/*****
So, is there any way to onboard this type of account via API? Or via tests at all?
Well you can set business_type on creation just not on update (which is what that API call was)
@round marten, business_type is just an example, I've tried to pass more info. So, I can provide all the needed data to have details_submitted and charges_enabled with true value on account creation, am I right?