#alexanderfarkas_api

1 messages Β· Page 1 of 1 (latest)

coral anvilBOT
#

πŸ‘‹ 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.

torn widget
#

I've received the following answer: Hi πŸ‘‹ not from the API. You will need to send them through the OAuth onboarding flow again.

chilly galeBOT
craggy crow
#

Hi again πŸ‘‹ yup.

#

Do you have a follow-up question?

torn widget
#

Yes, I could use the same account with the same account_id?

#

Or I should always create a new Connect one

craggy crow
#

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.

torn widget
#

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

coral anvilBOT
craggy crow
torn widget
#

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.

opaque scroll
torn widget
#

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

opaque scroll
torn widget
#

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."

opaque scroll
#

This is a test only Account right?

torn widget
#

Yes

#

Could you please relink it?

opaque scroll
#

No I can't.

opaque scroll
#

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 ?

torn widget
#

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.

opaque scroll
#

OK then in order to re-connect it

#

Are you following these steps:

  1. You generated an oauth link from the Platform Account
  2. Then you disconnected as a Platform and Connected as the standard Connect account
  3. and then opened the oauth link ?
torn widget
#

Yes, as far as I understand

opaque scroll
#

What is this account ?

torn widget
#

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

opaque scroll
#

You need to create an Oauth link and not AccountLink

#

In order to reconnect

torn widget
#

Oh, so to reconnect, it should be OAuth and for new account it should be AccountLink?

opaque scroll
torn widget
#

Can this be unified or no?

opaque scroll
#

For Standard Account, you can use Oauth for both cases

torn widget
#

Is there a documentation for available params in stripe.OAuth.authorize_url()?

coral anvilBOT
torn widget
#

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.

spiral lichen
#

Where do you see this error exactly?

#

But yes, you have to enable it in your settings.

torn widget
#

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.

spiral lichen
#

What's the exact user tag?

torn widget
#

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.

spiral lichen
#

Thank you for reporting.

torn widget
#

Thank you! Have a great day