#Chris85-connect

1 messages · Page 1 of 1 (latest)

pliant oxide
#

do you have the ID acct_xxx of such an account?

#

sure: acct_1LalH6GlqB6YANwW
reposting in the thread

#

what happened here is you are consuming the OAuth token twice which revokes the connection

#

i.e if you do https://stripe.com/docs/connect/oauth-standard-accounts#token-request twice, it revokes the connection(the OAuth spec requires a connection to be revoked when an access token is used twice).
That's a really common problem.

Overall I would highly suggest not using OAuth, you should be using https://stripe.com/docs/connect/standard-accounts with the Account and AccountLinks APIs, one of the advantages is it can never have this problem. OAuth is only for use cases where you act as an 'extension' and have to connect to existing accounts. Use cases where you're a platform facilitating payments through the connected account should create the account directly that way instead.