#patirck_connect-onboarding
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/1479134915034353696
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi 👋 I'm taking a closer look
thanks toby±
Hm, can we align on what you're referring to by embedded onboarding, just to make sure I'm looking at the right things. When you say Embedded Onboarding, are you referring to this flow, where you create Account Sessions?
https://docs.stripe.com/connect/embedded-onboarding?accounts-namespace=v1#integrate-account-onboarding-component
Yes sorry i mean the above flow.
We register the user on our app, which also does the bare minimum to create a stripe account, we then have them fill in some information on the app and collect certain details including the MCC (by selecting an industry option) which we send to stripe.
The merchant then goes to an external onboarding link to fill in the details from the doc you have posted above. I can see in a users webhook events we have successfully saved the MCC field but the industry selection is still required during the embedded onboarding above and we can't update that currently
Hm, if you're generating an onboarding link, you may be using Account Links instead.
oh apologies if i'm being misleading
I get what you're saying that you're expecting MCC to prefill industry (and so am I), but I'm trying to nail down how you're getting to that point to see if there are any levers you can pull in your integration to try to change that behavior.
yes sorry we call it an an "onboardingLink" internally but it's created with the api this way
return this.stripe.accountLinks.create({
account: stripeAccountId,
type,
return_url: returnUrl || Configs.ONBOARDING_REDIRECT_URL,
refresh_url: refreshUrl || 'https://lopay.com',
collect: all ? 'eventually_due' : 'currently_due',
})
Perfect! Thank you
For your type parameter there, it looks like that is probably being set to account_onboarding which I think is the right option.
Does the behavior change at all with the value you're using for collect?
when you say does the behaviour change, do you mean is the industry prefilled, or do the fields shown on the set up differ?
Revolving around the Industry field, does it either show prepopulated or get hidden from view if collect is currently_due?
let me have a look, i'll have to spin up a test user real quick
also fyi the type being passed in is actually undefined
which surprised me
bear with me just trying to test this
No worries; I appreciate your willingness to help test here! I'm not sure of much else that you can try aside from fiddling with those parameters though. If the Industry field still isn't prefilling or being omitted, I think that's something that will need to be turned into a Support ticket so our teams can dig in more.
its all god, i'm just struggling to amend the code but running it locally and getting it to play nice with stripe is a bit of a faff. do you know what the api call for account link would be? perhaps I can do it that way, we do it via the sdk
Yup, that will be a POST request to our /v1/account_links endpoint. You can see all the supported parameters for that endpoint and its expected response shape here:
https://docs.stripe.com/api/account_links/create?lang=curl
okay so testing it just on the dashboard with currently due I can still see the industry drop down
let me try through the api now
Dang
And does the MCC you set get overridden if you select an industry there?
patirck_connect-onboarding
Will check that now, but I don't think it does. i think i tested this the other day. bear with me
@runic marsh can you share the connected account id too?
I want to confirm
- that you set MCC properly before redirecting to onboarding
- what type of account/configuration so I can reproduce
acct_1T7eOJKFWQzDtDc3
Okay so I see you set the MCC but not on creation.
Can I ask you to try a really simple one where you create the account with MCC on the creation request and then redirect to onboarding
(but I'm trying to reproduce in parallel, it used to work fine)
sure thing. So i can confirm:
We set the mcc via api call in our app -- I set this one as 4411 cruise lines
industry is not prefilled and i can change it in the account link form, I set it to other educational services
Going back to my account on stripe i can see that the industry has been updated via the form but does not update the mcc
@peak onyx I'm not sure how to achieve your request. We can't create a merchant's account with the MCC as we won't know it until after they register and begin entering details
yeah but in a way that's 2 bugs right?
- In onboarding we ignore what you have pre-filled and make it look like it's not set
- After onboarding, we ignore what they set and don't tell you the new on ine the API
I'm not sure how to achieve your request. We can't create a merchant's account with the MCC as we won't know it until after they register and begin entering details
it was just for you to test as a one-off. But all good, I'm trying to reproduce
but the MCC and industry are two different fields
they aren't related
well, they are but they are two seperate values
hmmmm
Can you clarify what you mean? What do you think "industry" maps to in the API? I'm confused.
Usually it's business_profile.mcc -> dropdown with your industry
yes so did we but it seems like you also have a field called business_profile.industry which is updated when you fill in the dropdown
not the mcc
where did you see this?
all good, yeah that's a purely internal concept though
weirdly I don't get that industry dropdown when I prefill, but still trying to debug
when you say prefill, how are you achieving this? at what stage
I'm doing what you do: I create an account and pass some values which is what I call "pre-filling" since you're setting information before sending them to Stripe to complete the rest
okay i see, yeah that makes sense. I think with our current flow we create the connect account before we have the mcc information. it might be quite a large change to solve that
it's more like this currently:
- Create Stripe connected account — no MCC at this point
- Save merchant to DB
- Create Stripe Person (async worker)
- Generate onboarding link
- Merchant selects business type in-app → MCC saved to our DB, then pushed to Stripe via account update
- Merchant opens Stripe onboarding form → MCC is set on the account but Industry field still shows "None"
maybe we can move the generate onboarding link step until after the mcc is selected
ah okay
Sorry I'm still spending time reproducing with no luck yet.
no worries
Ah I know why mine doesn't work, if I don't pass any MCC mine just inherits the one from the platform
Sorry I'm going to have to send you to support at this point. I don't understand what's causing this and it seems like a bug and the support team can work with the product team and provide more details as we iterate on this
thats okay! i'm glad i checked
might have to do with you using Issuing
Happy to help, sorry I got stuck
when you say send me to support what do you mean? I've already spoken to a chatbot that wasn't helpful and then found this discord resource do i need to contact someone else?
ah yes I mean go back to support, ignore the nonsensical chatbot and ask to talk to a human
You can try https://support.stripe.com/contact/email?topic=api_integration which is supposed to give you a contact form (but it doesn't always work, #llms)