#logan_api

1 messages ¡ Page 1 of 1 (latest)

lost ploverBOT
#

👋 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.

restive shell
#

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)
})

old laurel
#

Yes this is a limitation. You could reach out to our Support team for further clarification

restive shell
#

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

old laurel
#

No, the account owner will still need to fill out information anyway

restive shell
#

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

old laurel
restive shell
#

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

old laurel
#

You can only click to the link once

#

If you paste it somewhere it will stop working

#

(Even pasting here)