#logan_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1311208057669419028
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
const stripe = require('stripe')('sk_test_{{my-api-key}}');
const createConnectedAcc = async () => {
const account = await stripe.accounts.create({
country: 'US',
email: 'logu.nathan42@gmail.com',
controller: {
fees: {
payer: 'application',
},
losses: {
payments: 'application',
},
stripe_dashboard: {
type: 'express',
},
},
});
return account;
}
createConnectedAcc().then(res=>{
console.log(res)
},err=>{
console.log('error ',err)
})
Yes this is a limitation. You could reach out to our Support team for further clarification
Okay one more question
Can i create a connected account and make it activated dynamically instead of sending activation link from daqshboard to Account email
No, the account owner will still need to fill out information anyway
can we make sending account activation link automated through the api call, ie do we have any api in stripe where we can get the account activation link for particaular inactive/restricted connected account, create by us
It's the Account Link here: https://docs.stripe.com/connect/express-accounts#create-link and yes you can generate and send this by yourself
const createActivationLink = async(accId)=>{
// Set your secret key. Remember to switch to your live secret key in production.
// See your keys here: https://dashboard.stripe.com/apikeys
const accountLink = await stripe.accountLinks.create({
account: accId,
refresh_url: 'https://examplee.com/reauth',
return_url: 'https://examplee.com/return',
type: 'account_onboarding',
});
return accountLink;
}
tried this getting a response with url in it
https://connect.stripe.com/setup/e/acct_1QPfr4QRr41DQgeg/lpHUEHAH8N1x
when we click this url it takes me to return_url instead of loading my stripes setup page
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.