#sajid_embedded-onboarding

1 messages ยท Page 1 of 1 (latest)

daring mapleBOT
spare mangoBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

daring mapleBOT
#

๐Ÿ‘‹ 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/1234858538287759440

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

spare mangoBOT
stiff talon
#

Hi again ๐Ÿ‘‹ I'm not sure I understand what you're trying to accomplish. You do not use Setup Intents for setting up External Accounts for receiving Payouts.

Are you building a Connect integration, if so what type of Conencted Accounts are you using?

oak geode
#

I am integrating stripe connect, I am using cutom accounts.

#

I need help at frontend just to get the information from user as per he select bank account.

stiff talon
#

Gotcha. This is a good guide to be using then:
https://docs.stripe.com/connect/payouts-bank-accounts?bank-account-collection-integration=direct-api&bank-account-collection-method=manual-entry

For the frontend part, you'll want to have your own input fields and use the values provided to them to create a bank account Token via stripe.js:
https://docs.stripe.com/js/tokens/create_token?type=bank_account

Then you can pass the ID of that Token into a request to create an External Account. This part is shown in the linked guide.

Learn how to manage external bank accounts and debit cards for connected accounts

oak geode
#

means i have mutliple fields for each bank i will select. like account number , cvc for credit and debit, routing and acccount for usa etc for each type of bank?

stiff talon
#

Huh?

#

I'm not understanding what you're trying to ask there.

#

Oh, you're asking about collecting debit cards as External Accounts in addition to bank accounts?

oak geode
#

Yes

#

To attach bank accounts to connected accounts, your custom form needs to include fields for an account_number and, in some countries, a routing_number. Every country has a slightly different format for these numbers, and entering them incorrectly causes subsequent payouts to fail.

#

like here it says each country has slightly different format, how I will take information correctly from each country. do I need to create seperate cutom fields for each country?

stiff talon
#

Do you want to collect this information yourself?

#

You can let us collect it for you if you're using our hosted onboarding flows.

oak geode
#

I have used Embedded UI elements. but for this I dont find any embedded element.

#

I dont want my user to go out from my website.

stiff talon
oak geode
#

to manual?

stiff talon
#

Nope, this one at the bottom:

oak geode
#

Yes it is toggled.

stiff talon
oak geode
#

yes it is embedded in my website. It shows information.

stiff talon
#

Cool, so you now have an Embedded Connect Component collecting External Account information?

oak geode
#

It does not give option to collect external account information.

stiff talon
#

It's hard to be more specific about what you should do without more specific details about what you're doing. Do you have the ID of the Connected Account from your testing that you're using, as well as the ID of the request you made to create the Account Session you used to render the embedded component?

oak geode
#

Yes this is from my webiste. I have connected account id and id of the request as well.

#

can i send code, so it will might help you to determine the issue?

stiff talon
#

Yes

oak geode
#

//creating session

const createSession = async (req, res) => {

console.log("creating account session!!")
const userId = req.decoded.id;
const stripeDetails = await Stripe.findOne({userId: userId})
console.log(stripeDetails)

if (!stripeDetails) {
  return res.status(403).json({ message: "User not found" });
}

const stripe = require('stripe')('');
try {
const accountSession = await stripe.accountSessions.create({
account: stripeDetails.stripeAccountId,
components: {
payments: {
enabled: true,
features: {
refund_management: true,
dispute_management: true,
capture_payments: true,
}
},
account_onboarding: {
enabled: true,
features: {
external_account_collection: false,

      },
      
    },
    payment_details: {
      enabled: true,
      features: {
        refund_management: true,
        dispute_management: true,
        capture_payments: true,
        destination_on_behalf_of_charge_management: false,
      },
    },
    balances: {
      enabled: true,
      features: {
        instant_payouts: true,
        standard_payouts: true,
        edit_payout_schedule: true,
      },
    },
  }
});
console.log("account session: ",accountSession)

res.json({
  client_secret: accountSession.client_secret,
});

} catch (error) {
console.error('An error occurred when calling the Stripe API to create an account session', error);
res.status(500);
res.send({error: error.message});
}
}

stiff talon
#

external_account_collection: false,

#

You turned it off in the request

#

remove that line

oak geode
#

when i turn it as true, it shows me this interface and when i click it takes me to stripe hosted onboarding

stiff talon
#

Like redirects you on that same page, the embedded component goes to the onboarding flow, a window pops up, something else?

Sorry, I was pretty sure this all worked together by now, but may be mistaken.

oak geode
#

Just this interface appears. when i click add information it takes me to stripe hosted onboarding.

#

But I want that it all should work in my website, user should not to go outside of my website.

#

account_onboarding: {
enabled: true,
features: {
external_account: true,
external_account_collection: false,

      },
      
    },
#

external_account parameter gives error

stiff talon
#

Yeah, that isn't a parameter

oak geode
#

how can I do this then?

stiff talon
#

I don't know yet, I'm consulting with my teammates to figure out if I've sent you down the completely wrong path, or if this is expected to work and we need to dig more into the specifics of what you're doing.

oak geode
#

Ok sure.

#

I'm waiting for your response.

stiff talon
oak geode
#

yes in new window

daring mapleBOT
#

sajid_embedded-onboarding

stiff talon
#

Gotcha, thank you, we're looking on our end. I'll be back once I have more.

#

What exactly do you see in the new window? Is it an authentication process, via a phone number or email address? My teammate is testing, and in their testing they're only seeing that the authentication step is the portion being rendered in the new window.