#fdc8cd4cff2c19e0d1022e78481ddf36

1 messages ยท Page 1 of 1 (latest)

vapid condorBOT
drowsy root
#

How's the connected account connected? Is it through Oauth or account creation? Do you have an example connected account ID (acct_xxx) to share?

wise dirge
#

I have created a standard account like this:
stripe.Account.create(
type="custom",
country="US",
email="jenny.rosen@example.com",
)

using the stripe.id from such, I am calling this:
stripe.AccountLink.create(
account=f"{stripe_account_id}",
refresh_url=kwargs["refresh_url"],
return_url=kwargs["return_url"],
type="account_onboarding",
)

from such account link I get the onboarding url and send it to the user

#

when he finished the onboarding, i mark his account as connected + active (based on account.updated webhook + charges_enabled + payouts_enabled)

drowsy root
wise dirge
#

"Standard accounts created using live-mode keys cannot be deleted"

#

Not sure what this means then? I cant delete them, so I only remove the reference to their account from my local database, so it appears as the user is not connected? Or is there any API call I am missing out?

drowsy root
#

Which connected account type do you plan to use? In your code example, the connected account type is Customer whereas you're asking about Standard

wise dirge
#

I am creating standard accounts for my users

drowsy root
wise dirge
#

Yeah but that seems to be a way for me as a platform to remove them

#

I was into the possibility how to allow users to unlink / link their stripe accounts

drowsy root
wise dirge
#

๐Ÿ‘ will try

#

Hmm could you clarify where do I find such client_id? I seem to work only with public key / secret key right now

drowsy root
wise dirge
#

๐Ÿ‘