#rohail-kamran_unexpected

1 messages ¡ Page 1 of 1 (latest)

graceful pierBOT
#

👋 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/1402200319051436102

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

stiff dove
#

hi there!

#

I expected to see a form from stripe where I could onboard... used to be that way before...
can you share a screenshot of what you see when you click on the link? the link expired, so I can't see it on my end.

hidden nest
#

sure

#

Here is how I am generating the link:

Account creation:

            country: 'US',
            email: req.decoded.basicInformation.email,
            controller: {
                fees: {
                    payer: 'application',
                },
                losses: {
                    payments: 'application',
                },
                stripe_dashboard: {
                    type: 'express',
                },
            },
        });

Link Creation:

 const accountLink = await stripe.accountLinks.create({
            account: account.id,
            refresh_url: 'https://example.com/reauth',
            return_url: 'https://example.com/return',
            type: 'account_onboarding',
        });

And finally the link I am using is:

accountLink.url

stiff dove
#

so when you click the link the first time, you directly see the refresh_url?

hidden nest
#

yess

stiff dove
#

did you do antyhing with the link before cliking on it? like paste it in an app?

#

because some app may try to open the link to generate a thumbnail, which means when you click on it, it's actually the second time the link is opened, so you get redirected to the refresh_url.

hidden nest
#

Ohhhh

#

that might be it

#

because I copied it and sent it to my QA for testing.

stiff dove
#

so can you try to get the URL directly from the API call.

#

and see if it works?

hidden nest
#

I am testing it right now

#

Please give me some time.....

#

Can I reopen this later? I have to be somewhere

stiff dove
#

the thread may be automatically closed. but fell free to reopen a new one if needed!