#waleed.bin.khalid
1 messages · Page 1 of 1 (latest)
hi! make sure you have enabled other countries in https://dashboard.stripe.com/test/settings/connect/express
yes all countries are enabled
but still unable to change home address other than US
its in live mode btw
what code do you use to create the Express account?
country code ? zip code ?
no, code you as the developer wrote
like the PHP or Javscript or whatever you are using on your backend
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
};
};
basicall you need to either:
- remove the
capabilities:{...}argument so the user can pick a country in the Express AccountLink - or, explciitly pass a
countrythat the user picked already.
ok lemme try