#tyler-archetype

1 messages ยท Page 1 of 1 (latest)

heady novaBOT
quartz wasp
#

Hi there

#

No you would use OAuth for this.

#

You can also create an OAuth link via the Dashboard by going to your Connect tab and clicking "create"

true smelt
#

Do webhooks still work the same with OAuth as they do with AccountLink.create?

quartz wasp
#

Hmm what do you mean by that exactly?

#

Are you asking what Webhooks will fire when the account is connected?

true smelt
#

ya. When I make the oath call I get a page that says: "To finish the process of getting an access_token for your user's account, you'll need to make one extra API request with the authorization code we passed back" but with AccountLink.create I get the access_token through a webhook

#

I was wondering if I could still get the access_token through the webhook

#

actually maybe I don't get the access_token with AccountLink.create. Is that only necessary for Oauth?

tidal token
true smelt
#

Oh so I don't need to worry about the access token anymore?

tidal token
true smelt
#

But you're saying with Oauth I'd still need to use access_tokens

tidal token
#

Correct, but I'd also to clarify that we no longer recommend using OAuth for new integrations. Platform Controls were introduced, and with those some Connected Accounts get locked to only be associated with a single Platform. If you try to use OAuth for an account in this state, the system will automatically create a new Standard Account and connect that instead.

It's not possible to know when this will happen, so it's typically more consistent to create your own accounts anyway to avoid this.
https://stripe.com/docs/connect/oauth-standard-accounts#:~:text=OAuth is not,by another platform.

Use the OAuth connection flow to allow a Standard user to connect to your platform.

true smelt
#

Got it. The migration strategy seems cumbersome with creating a new connect account though if a user already has a standard account that they have been using. What would you suggest as a migration strategy to the new connect account in this circumstance

tidal token
#

Can you elaborate? What would they be migrating?

true smelt
#

if they have existing customers, prices, products, subscriptions in their standard account and then we create a new connect account for them all of those don't get carried over

tidal token
#

Hm, what is your Connect Platform trying to accomplish, I'm wondering if it would be a better fit for a Stripe App?

true smelt
#

what's a stripe app?

tidal token
true smelt
#

I see. I don't think that's my use case. I want to be able to have API access to an account that my customer also has access to

#

which I believe is the use case for Connect

tidal token
#

Gotcha, I was just curious why you were trying to reference an account's existing objects in your flows.

true smelt
#

oh ya we definitely need to be able to reference existing objects or have copies of them

#

and also create new ones

tidal token
#

Okay, well if you rely on OAuth you might end up connecting to an empty account, but if you use the new flow you will consistently be connecting to an empty account. If you can create objects to satisfy your flow's needs, then you can begin creating objects in the account's as necessary.

true smelt
#

so you're suggesting we recreate our customers objects

tidal token
#

Not necessarily, I'm still trying to understand why you want to reference previous objects on newly Connected Accounts.

If there are objects that your integration requires to function, then you'll likely want to create those.

true smelt
tidal token
#

The authorization code is used for completing the onboarding flow. For rolling access tokens later, you'll want to use the refresh_token.

true smelt
#

ok and this would be something we would have to manage with Oauth but not with the new process

tidal token
#

Yup, but I think you can use the new approach (using stripeAccount) even if you connected the account via OAuth.

true smelt
#

oh

#

so if it's connect via oauth we can still manage them using the stripeAccount