#alexanderfarkas_api
1 messages Β· Page 1 of 1 (latest)
π 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/1352232482723856396
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- alexanderfarkas_api, 19 minutes ago, 5 messages
I've received the following answer: Hi π not from the API. You will need to send them through the OAuth onboarding flow again.
Yes, I could use the same account with the same account_id?
Or I should always create a new Connect one
I'm not sure I understand. OAuth is for connecting existing Stripe accounts to your Platform, you don't create Connected Accounts yourself with an OAuth flow.
I'm using a test mode currently
I was using a Connected Stripe test account, then due to the bug we deauthorized it through an API call
Now, even if I login under the same email during Connect Flow, I cannot see the old Stripe Connect Account - it prompts me to create a new one.
Old Stripe Connect Account which was deauthorized - acct_1L144ARLotSK49I8
It looks like that account was originally created by an API request, and with how it was created it was designed to be controlled by a Platform. So I believe you aren't seeing the option to reconnect it due to this limitation around OAuth onboarding for a controlled account:
https://docs.stripe.com/connect/oauth-reference#:~:text=Starting in June 2021%2C Platforms using OAuth with read_write scope wonβt be able to connect to accounts that are controlled by another platform
Correct, it was created through an API request. So, how do I reconnect it?
I've read through the documentation you've sent and I don't seem to find an answer.
Have you tried to generate an Oauth and share it with that Standard Account and invite them to connect ?
https://docs.stripe.com/connect/oauth-reference
Yes, I tried and I don't see this account among the options
And on the connected account itself I see the following message
Oh, maybe I could create account link for an existing account id in order to restore it
Because now I first create stripe.Account.create(type="standard") and then isssue an activation link for it
That could be an option yes
I will inform you on the outcome π
It responds me back with "You requested an account link for an account that is not connected to your platform or does not exist."
This is a test only Account right?
No I can't.
Just to make sure you are doing the test correctly
You generated an oauth link from the Platform Account
Then you disconnected as a Platform and Connected as the standard Connect account
and then opened the oauth link ?
No, I create it using stripe.Account.create(type="standard"). Then generated an activation link with stripe.AccountLink.create(
account=account_id,
refresh_url=refresh_url,
return_url=return_url,
type="account_onboarding",
)
I don't remember exactly how this particular account was generated, but it should've been generated as Standard
After the account was setup, I deauthorized it via stripe.OAuth.deauthorize(client_id=STRIPE_CLIENT_ID, stripe_user_id=account_id)
Now, when I try to create a link for already existing connect account: stripe.AccountLink.create(
account="acct_1L144ARLotSK49I8",
refresh_url=refresh_url,
return_url=return_url,
type="account_onboarding",
)
I get the following error: Request req_Rlfkg9mWd34HMl: You requested an account link for an account that is not connected to your platform or does not exist.
OK then in order to re-connect it
Are you following these steps:
- You generated an oauth link from the Platform Account
- Then you disconnected as a Platform and Connected as the standard Connect account
- and then opened the oauth link ?
Yes, as far as I understand
What is this account ?
Just to clarify, how I create a new link:
- stripe.Account.create(type="standard")
- stripe.AccountLink.create(
account=account_id,
refresh_url=refresh_url,
return_url=return_url,
type="account_onboarding",
)
So account on the screenshot is an in-progress account I tried to create today
Oh, so to reconnect, it should be OAuth and for new account it should be AccountLink?
You need to disconnect from its Stripe Dashboard, and connect using the test Standard Account credentials
Yes
Can this be unified or no?
For Standard Account, you can use Oauth for both cases
Is there a documentation for available params in stripe.OAuth.authorize_url()?
I've found them, but now it fails "Standard OAuth is disabled for this Stripe Connect integration. If you own this integration, you can enable the Standard OAuth flow in the Connect Settings page in your dashboard."
Seems, that in order to allow reconnection, I should enable it.
Where do you see this error exactly?
But yes, you have to enable it in your settings.
I've seen it on the redirect url received from the authorization_url() call
Now I've completed the process. You comrades have helped me big time π
Just FYI, I was messaged by a copy of os4m37 who tried to scam me
Please, add some kind of WARNING to the thread header
'Cause in the direct message all these Channel labeles are lost and it's hard to distinguish legit Support from scammers.
What's the exact user tag?
duzza.jj
And the legit one looks almost exactly the same
I guess if they tried a bit harder and changed "About Me", it would be easier for them.
Thank you for reporting.
Thank you! Have a great day