#Cojy-connect-onboarding
1 messages · Page 1 of 1 (latest)
Hey!
Indeed, Account Links are short lived by nature and do expire. You'll need to create a new link for the same account
Yes it expires in 5minutes, but all the ones I create redirect to the reauth page
immediately
I created one yesterday evening successfully, which expired. So I redid it today and it does not work anymore
I tried with a new account as well
the reauth is the refresh url
You'll need to provide some more context other than 'does not work' – is there an error? Can you share a video/screenshot of the behaviour?
if the account is partially onboarded, how can I finish the onboarding ?
You'd still use a account_onboarding link
I type in the example:
curl https://api.stripe.com/v1/account_links
-u sk_test_Sb7qeQ6LxOkmb5f5XlR4pDyB00PrRuXEyZ:
-d account=acct_1EP9vWHARaH5gQNZ
-d refresh_url="https://example.com/reauth"
-d return_url="https://example.com/return"
-d type=account_onboarding
I just replace the sk_test with my sk_live and the account= with the account I want to onboard
Which account ID are you using?
This gives me
something like
{
"object": "account_link",
"created": 1662624039,
"expires_at": 1662624339,
"url": "https://connect.stripe.com/setup/s/acct_1LdcbAQVSMmoFrjg/gj5YAgaJ7uG9"
}
if you click the link it directly goes to the reauth example page
Is this the account? acct_1LdcbAQVSMmoFrjg?
I tried two accounts, this one is my test account
Well this expired~7 minutes ago so isn't a great example
I can generate a new one
{
"object": "account_link",
"created": 1662624823,
"expires_at": 1662625123,
"url": "https://connect.stripe.com/setup/s/acct_1LdcbAQVSMmoFrjg/8wpPzefD6SBp"
}
Ok, checking the account
thank you
Hmm, could it be that the URL has already been clicked once? They're only accessible once and then they expire: https://stripe.com/docs/connect/standard-accounts#create-link:~:text=You can only,holder’s personal information
I did not use it, gave it straight to you
{
"object": "account_link",
"created": 1662625188,
"expires_at": 1662625488,
"url": "https://connect.stripe.com/setup/s/acct_1LdcbAQVSMmoFrjg/10lkfivmTvJm"
}
Here is a new one
Bear with me
Sorry I did not get what you meant with your last sentence
I'm checking on something
ok thank you for your help !
of course!
We're unable to reproduce this issue so its not a larger problem. Trying to dive into the logs to see why your links are redirecting
my live account is acct_1LfORn2cuGMAHh6e, this is the one I am most interested in
if the test one does not work, that won't be a problem
{
"object": "account_link",
"created": 1662626524,
"expires_at": 1662626824,
"url": "https://connect.stripe.com/setup/s/acct_1LfORn2cuGMAHh6e/jwjNRSn9UdYi"
}
Can you try and create an Account Link and access it without pasting it here?
yes
I think Discord is technically using them (as they'll open it for open graph stuff)
when I click the link I get a 301 and it redirects to https://example.com/reauth
Right, but can you create a new one and then click it without posting it here? When you post it to Discord, it'll be marked as used
Can you create a new one now, don't click it or share it here (I'll find it in your account logs)
Hmm, not seeing that URL for acct_1EP9vWHARaH5gQNZ
acct_1LfORn2cuGMAHh6e
Yeah but the creation is done on the platform
I used the live one for you to look into. But I can reuse the test one if you prefer
Please use the test keys for your platform: acct_1EP9vWHARaH5gQNZ
I do not have this account
Live is acct_1LfORn2cuGMAHh6e
and test is acct_1LdcbAQVSMmoFrjge
That's the account that created this Account Link
ok !
Those are the connected accounts
The platform account creates the Account Link
I do not have the sk_test for this platform
I'm so confused. You were literally using those keys less than an hour ago to create some of the Account Links you've shared here
acct_1EP9vWHARaH5gQNZ is the platform account that created your test account (acct_1LdcbAQVSMmoFrjg)
I misunderstood, I thought you said you created a new test connect account on one of the "parent" accounts
I did not know about the acct_1EP9vWHARaH5gQNZ
So do you want me to create a new link for acct_1LdcbAQVSMmoFrjg ?
Yes please. Don't click it or share the full URL here, just the last (unique) portion
I can find it there
I just created 6PBVvsFhqzf1
Ok, https://connect.stripe.com/setup/s/acct_1LdcbAQVSMmoFrjg/6PBVvsFhqzf1 just worked for me
So something at your end is accessing the URL initially
And then the subsequent requests are 301 redirects (confirmed from our logs)
Ok, if I click on the link it does not work, if I copy/paste it works
I can't share it in gmail
it's a problem to share with my client
Yup, has to be
thank you for your help, but it's really not convenient
I can't even send it through the post office it will expire
So I'm looking at ueJq1VkY3QH8 which was a a link URL you shared earlier. This was the first user agent to access that URL:
Mozilla/5.0 (X11; Linux x86_64) KHTML/5.68.0 (like Gecko) Konqueror/5 KIO/5.68
Well you should just implement a refresh_url and this won't be an issue
No I need to implement multiple pages that will create the links, redirect, handle refresh
And my goal is not to create a platform to enroll anybody, I just need to split payments into two accounts 😦
I'll give my client a phone call and share the link by voice...
And I can't verify what I give him
thanks anyway, have a good day