#jayvir_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/1245418728015921152
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Which links are you asking about?
const account = await stripe.accounts.create({
type: 'standard'
});
const accountLink =
account &&
(await stripe.accountLinks.create({
account: account.id,
refresh_url: 'https://example.com/reauth',
return_url: 'https://example.com/return',
type: 'account_onboarding',
}));
1.i want to how can i increase the expire time of links to 30 days from 4 minutes
2.how can i know my customer have provided all things & filled all data
You can't increase the amount of time those links are valid. Account Links are designed to be used more or less immediately after they're created.
For #2, you can listen for connected account Events to monitor and see when an account has completed onboarding or when they meet some other requirement: https://docs.stripe.com/connect/webhooks
- any other way to create customer & provide them link
so they fill data with less expiry
You should give out links that point to your website, then when those links are visited your server should create an Account Link and redirect them to it.
i didnt understand that
please explain me in detail
How are you sending these links to people now? Email? Something else?
I'll use email as an example. When you send out your email, you don't create an Account Link at that point. Instead, you include a link that points back to your website, like https://example.com/account-link?code=<some_code>
Then, when someone visits that link, you use the code to identify them, create an Account Link for them, and redirect them to the Account Link's URL.
i send on email Then that link stripe link will be expired after 5 minutes