#eliasknudsen
1 messages · Page 1 of 1 (latest)
Yeah I would recommend starting with Stripe Connect Doc: https://stripe.com/docs/connect
Ok, i just tested something like this to see: ``` app.get("/api/referral", async (req, res) => {
const account = await stripe.accounts.create({ type: 'express' });
const accountLink = await stripe.accountLinks.create({
account: account.id,
refresh_url: 'https://example.com/reauth',
return_url: 'https://example.com/return',
type: 'account_onboarding',
});
console.log(accountLink);
res.send({ message: "test" })
})``` Would this be the correct way?