#waleed.bin.khalid

1 messages · Page 1 of 1 (latest)

last vaporBOT
sudden ravine
formal sedge
#

yes all countries are enabled

#

but still unable to change home address other than US

#

its in live mode btw

sudden ravine
#

what code do you use to create the Express account?

formal sedge
#

country code ? zip code ?

sudden ravine
#

no, code you as the developer wrote

#

like the PHP or Javscript or whatever you are using on your backend

formal sedge
#

javascript

#

const createAccountAndAccountLink = async () => {
const account = await stripe.accounts.create({
type: "express",
capabilities: {
card_payments: { requested: true },
transfers: { requested: true }
}
});
// console.log(account);
const accountLink = await stripe.accountLinks.create({
account: account.id,
refresh_url: ${process.env.FRONTEND_URL},
return_url: ${process.env.FRONTEND_URL},
type: "account_onboarding"
});
return {
id: account.id,
url: accountLink.url,
expiresAt: accountLink.expires_at
};
};

sudden ravine
#

basicall you need to either:

  • remove the capabilities:{...} argument so the user can pick a country in the Express AccountLink
  • or, explciitly pass a country that the user picked already.
formal sedge
#

ok lemme try