#krishna008
1 messages · Page 1 of 1 (latest)
Hello! What's the issue?
I don't want to use refresh url. Is it possibel to remove it.
It is not, no. It's recommended you implement a refresh URL so that if a user visits an expired link the refresh URL can generate another: https://stripe.com/docs/connect/standard-accounts#refresh_url
Does link expire? How long it is active?
They're pretty short lived and are one-time use (i.e. if clicked, I don't believe they can be re-opened)
I am facing one issue. When I am creating link I am doing two task
- Opening same link in another tab immediately
- Sending link on mail so user can open it later.
But problem is that when user visit the link received through email it goes on refresh url only, not on account creation url.
What I have to do in this case?
Yup, sounds right as I explained. Once the URL is opened (i.e. by you opening it in a tab), it can't be opened again (via the email)
They'd be redirected to the refresh_url in this instance, which should just be an endpoint in your server that creates a new Account Link and redirects to that
But If I create new account link after hitting refresh url then stripe account id will change again.
I want same stripe account id. which was crated first time.
Is there any way to visit same link again.
No it won't, the Account Link accepts an account parameter where you pass the existing acct_xxx ID. It doesn't create a new Account
Maybe you pass the acct_xxx as a URL parameter to your refresh_url
Then the URL can use that in the API request to create a new Account Link
How can I pass existing account id to account link.
await stripe.accountLinks.create({
account: account_id,
refresh_url: "https://www.gocrowdera.com/profile?stripe=refresh_url&account=account_id",
return_url: "https://www.gocrowdera.com/profile?stripe=return_url",
type: "account_onboarding",
});
Okay sir. I got it.
I think I need to hit accountLinks.create API again.
Is it possible to hit directly from email?
Once I click on email link it should go on account create page of Stripe.
Yes, that's what I just told you to do. Whichever endpoint/server your refresh_url points to should call accountLinks.create again with the same parameters
But I will receive link in the response of accountLinks.create API. How can open that link in tab?
You'd use a redirect method in your server. Is it Node? res.redirect works