#vell_2x

1 messages · Page 1 of 1 (latest)

tame mangoBOT
sudden flare
#

Hi. Which site?

rugged oak
#

the connect account on boarding link

sudden flare
#

Have you tried on different devices and on different networks?

rugged oak
#

no, but I can use other services just fine with this device

sudden flare
#

Yeah I'm just saying it could be a device or network issue, so the above is what I'd recommend

rugged oak
#

I would like to check my implementation

sudden flare
#

What do you mean

rugged oak
#

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

sudden flare
#

Yeah that flow makes sense