#fdc8cd4cff2c19e0d1022e78481ddf36
1 messages ยท Page 1 of 1 (latest)
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?
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)
Thanks for sharing! For connected account created through stripe.Account.create, it can be disconnected through Delete Connected Account API: https://stripe.com/docs/api/accounts/delete
"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?
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
I am creating standard accounts for my users
I see! You may follow this guide to disconnect Standard connected account: https://stripe.com/docs/connect/oauth-reference#post-deauthorize
If it doesn't work, I'd recommend reaching out to Support https://support.stripe.com/contact to check how a Standard connected account can be disconnected
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
Have you tried this? https://stripe.com/docs/connect/oauth-reference#post-deauthorize
This is the disconnection from platform
๐ 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
You may find client ID in https://dashboard.stripe.com/test/settings/connect
๐