#patirck_connect-onboarding

1 messages · Page 1 of 1 (latest)

torpid gateBOT
#

👋 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.

runic marsh
robust willow
#

Hi 👋 I'm taking a closer look

runic marsh
#

thanks toby±

robust willow
runic marsh
#

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

robust willow
#

Hm, if you're generating an onboarding link, you may be using Account Links instead.

runic marsh
#

oh apologies if i'm being misleading

robust willow
#

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.

runic marsh
#

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',
    })
robust willow
#

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?

runic marsh
#

when you say does the behaviour change, do you mean is the industry prefilled, or do the fields shown on the set up differ?

robust willow
#

Revolving around the Industry field, does it either show prepopulated or get hidden from view if collect is currently_due?

runic marsh
#

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

robust willow
#

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.

runic marsh
#

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

robust willow
runic marsh
#

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

robust willow
#

Dang

torpid gateBOT
robust willow
#

And does the MCC you set get overridden if you select an industry there?

peak onyx
#

patirck_connect-onboarding

runic marsh
#

Will check that now, but I don't think it does. i think i tested this the other day. bear with me

peak onyx
#

@runic marsh can you share the connected account id too?

#

I want to confirm

  1. that you set MCC properly before redirecting to onboarding
  2. what type of account/configuration so I can reproduce
runic marsh
#

acct_1T7eOJKFWQzDtDc3

peak onyx
#

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)

runic marsh
#

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

peak onyx
#

yeah but in a way that's 2 bugs right?

  1. In onboarding we ignore what you have pre-filled and make it look like it's not set
  2. 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

runic marsh
#

but the MCC and industry are two different fields

#

they aren't related

#

well, they are but they are two seperate values

peak onyx
#

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

runic marsh
#

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

peak onyx
#

where did you see this?

runic marsh
#

this event happens when i select something on the form

#

sorry not event, api call*

peak onyx
#

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

runic marsh
#

when you say prefill, how are you achieving this? at what stage

peak onyx
#

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

runic marsh
#

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:

  1. Create Stripe connected account — no MCC at this point
  2. Save merchant to DB
  3. Create Stripe Person (async worker)
  4. Generate onboarding link
  5. Merchant selects business type in-app → MCC saved to our DB, then pushed to Stripe via account update
  6. 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

peak onyx
#

yeah it's basically what I said really

#

The onboarding link creation shouldn't matter

runic marsh
#

ah okay

peak onyx
#

Sorry I'm still spending time reproducing with no luck yet.

runic marsh
#

no worries

peak onyx
#

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

runic marsh
#

thats okay! i'm glad i checked

peak onyx
#

might have to do with you using Issuing

runic marsh
#

i see

#

thanks for your help though

peak onyx
#

Happy to help, sorry I got stuck

runic marsh
#

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?

peak onyx