#sajid_embedded-onboarding
1 messages ยท Page 1 of 1 (latest)
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.
- sajid_code, 5 hours ago, 18 messages
- sajid_custom-onboarding, 13 hours ago, 55 messages
- sajid_code, 21 hours ago, 51 messages
๐ 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.
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?
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.
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.
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?
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?
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?
Do you want to collect this information yourself?
You can let us collect it for you if you're using our hosted onboarding flows.
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.
Do you have the setting toggled on at the bottom of this page?
https://dashboard.stripe.com/test/settings/connect/payouts/external_accounts
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
to manual?
Nope, this one at the bottom:
Yes it is toggled.
Gotcha, are you now seeing External Account information collected in the Account Onboarding component?
https://docs.stripe.com/connect/supported-embedded-components/account-onboarding
yes it is embedded in my website. It shows information.
Cool, so you now have an Embedded Connect Component collecting External Account information?
It does not give option to collect external account information.
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?
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?
Yes
//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});
}
}
external_account_collection: false,
You turned it off in the request
remove that line
when i turn it as true, it shows me this interface and when i click it takes me to stripe hosted onboarding
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.
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
Yeah, that isn't a parameter
how can I do this then?
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.
Can you tell me exaclty how it takes you to the hosted onboarding flow? Is a new window/tab openeed, or are you redirected from the page you're on?
yes in new window
sajid_embedded-onboarding
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.