#sainita_code

1 messages ยท Page 1 of 1 (latest)

glad pollenBOT
#

๐Ÿ‘‹ 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/1270690375182454876

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

undone jacinth
#

Which API are you using the generated the URL? I'm assuming an Acocunt Link?

whole phoenix
#

Yes

#

Without logging in our site where the link is generated, if they try to open the link, it's expired at that moment

undone jacinth
#

How are you sending those links to them?

whole phoenix
#

we have tried from our end also. This link is not working if we are not logged in our site

#

It's redirected to our login page with error message like link expired

undone jacinth
#

Can you share an API request where you generate the link?

whole phoenix
#

try {
$stripe = generateStripeClient();
$account = $stripe->accounts->create(['type' => 'standard']);
$accountLinks = $stripe->accountLinks->create([
'account' => $account->id,
'refresh_url' => route('admin.settings.merchants.merchant-profile.refresh-stripe-connect-url', $merchantId),
'return_url' => route('admin.settings.merchants.merchant-profile.return-stripe-connect-url', $merchantId),
'type' => 'account_onboarding',
]);
} catch (\Exception $e) {
\Log::info($e->getMessage());
}

#

This is our process to generate the account link

undone jacinth
#

I need a req_xxx to verify the parameters

whole phoenix
#

Sorry couldn't get you.. What do you mean by "req_xxx"?

undone jacinth
whole phoenix
#

ok checking

undone jacinth
#

FWIW, those URLs are single use. So once they're clicked and opened, they can't be opened again

glad pollenBOT
wise timber
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

whole phoenix
#

req_0cMOAQC4GVkirQ

#

This is one request id for generate account link

wise timber
#

the account link was created successfully

#

what are you doing next?

whole phoenix
#

If we open this link once but do nothing and then try to open the link again. it's showing expired link

#

Is it a single use link?

wise timber