#hansott

1 messages · Page 1 of 1 (latest)

hollow micaBOT
livid magnet
#

Hello, apologies for the delay. I am not immediately familiar with what we recommend here. Looking and will get back to you

wheat roost
#

Thanks!!

livid magnet
#

Hey I am going to consult a colleague on this but I am having a bit of trouble handling your use case. What link are you trying to make here? And am I right in understanding that these apps will use your app without that link until you have an account up and running on your side, at which case you want to retroactively link the accounts that have your app installed to that account?

wheat roost
#

yeah, something like that. Our app has to be aware of the link so that we can schedule tasks to pull data (also using webhooks of course)

#

I don't know what the best way is to make that link, to let our app know (using the currently logged in user)

#

Does that make sense?

#

And so the post install using an external URL seems the only way

#

but then there's this vague state in between when the app is installed but there's no link

#

We can of course verify by doing a call from inside the dashboard to our API

#

And if not connected, show a button to link?

livid magnet
#

Thanks for the clarification. I'm really not that knowledgable on the authorization side of things here but I will pass that on to my colleague that I just reached out to. I will get back to you with what we can find

orchid path
#

Hey, taking over here!

#

Can you clarify what you mean by this:

What if there's no account yet on our side?

#

By your Stripe App from the marketplace, there will be a connection established between the Stripe App owner account (platform) and the installing account

wheat roost
#

Sorry the delay! My sound was off for some reason

#

Yes, I know that... It's just that we also need to have a reference between the Stripe account and an account in our app.

#

So that we can show in our app that there's a connection with Stripe

#

And schedule tasks to pull data

#

Basically make our app aware of the link!

#

I hope that's clear ^^

#

So after the user installs our app, the app and the Stripe account are connected and we can do API calls. Then we want to link the Stripe account with an account in our app. Maybe the user who installed the Stripe app doesn't have an account yet on our side and then we redirect to our app using the post install action... but then we cannot make a link until the user creates an account

orchid path
#

Got it, let me think about this

wheat roost
#

So I'm seeing two things:

  • Redirect after install to our app (if user is logged in, great, we can make the link)
  • In the settings of the Stripe app we can do an API call to our app to see if there's already a link, if not, we can show a button that they can click on

Is that the best way moving forward?

#

Kind of wished there was an OAuth login like extensions 😄

orchid path
#

Have you considered a webhook? That could be another option

wheat roost
#

Is there a webhook event for an app install?

Even then, a user could be a member of multiple accounts in our system so they need to choose an account anyway.

#

That's why we need to redirect I think

orchid path
orchid path
wheat roost
#

Alright! #1022863508167204906 message Seems the right way then, we get the account_id in the URL when redirecting but we'll also need to show a button in the dashboard somewhere if there's no link yet.

#

Thanks a lot for helping!

#

It's strange that this hasn't popped up before actually.

orchid path
#

to be clear, you can use OAuth flows within your Stripe App to connect to external providers

wheat roost
#

Yes, that's the other way. We don't have an OAuth server/system sadly

orchid path
#

You can bake a login/sign up flow into the app without OAuth

#

Nothing preventing that