#krishna008

1 messages · Page 1 of 1 (latest)

lilac latchBOT
pure perch
#

Hello! What's the issue?

cold raptor
#

I don't want to use refresh url. Is it possibel to remove it.

pure perch
cold raptor
#

Does link expire? How long it is active?

pure perch
#

They're pretty short lived and are one-time use (i.e. if clicked, I don't believe they can be re-opened)

cold raptor
#

I am facing one issue. When I am creating link I am doing two task

#
  1. Opening same link in another tab immediately
#
  1. 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?

pure perch
#

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

cold raptor
#

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.

pure perch
#

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

cold raptor
#

How can I pass existing account id to account link.

pure perch
#
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",
    });
cold raptor
#

Will It open create same link?

#

I mean with same Account Id

pure perch
#

Yes

#

If you get the account parameter from the URL at your refresh URL

cold raptor
#

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.

pure perch
cold raptor
#

But I will receive link in the response of accountLinks.create API. How can open that link in tab?

pure perch
#

You'd use a redirect method in your server. Is it Node? res.redirect works

cold raptor
#

Yes sir it is Node.

#

Can I do this?

pure perch
cold raptor
#

Okay sir got it.

#

Thank you so much for your help.

#

Have a great day sir.