#vell_2x
1 messages · Page 1 of 1 (latest)
Hi. Which site?
the connect account on boarding link
Have you tried on different devices and on different networks?
no, but I can use other services just fine with this device
Yeah I'm just saying it could be a device or network issue, so the above is what I'd recommend
I would like to check my implementation
What do you mean
app.get('/onboard', async (req, res) => {
console.log("Req: " + req.body);
console.log("Account ID: " + req.body.account);
const accountID = req.body.account;
const accountLink = await stripe.accountLinks.create({
account: accountID,
refresh_url: 'My Link', // URL to redirect the user to after completing the onboarding
return_url: 'My Link', // URL to redirect the user to after they successfully complete the onboarding
type: 'account_onboarding', // Type of link, you can use 'account_onboarding' for onboarding a user
});
console.log('Account Link:', accountLink.url);
// Return a response
res.redirect(accountLink.url);
});
I am working in node js. I am using this implementation to direct users to on boarding link.
The flow is they create account then I send connect account id to the hook above so they will be redirected to the onboard page
Yeah that flow makes sense