stripe / stripe-apps

Stripe Apps lets you embed custom user experiences directly in the Stripe Dashboard and orchestrate the Stripe API.
https://stripe.com/docs/stripe-apps
MIT License
148 stars 73 forks source link

Deep linking to a specific stripe account #840

Open clement911 opened 1 year ago

clement911 commented 1 year ago

Sometimes a user belongs to multiple stripe accounts.

When using deep links , how do we create a link that will direct the user to a specific stripe account?

clement911 commented 1 year ago

Also can the stripe app access custom query string parameters that we add to the link?

auchenberg-stripe commented 1 year ago

We don't support deep linking into specific user accounts from outside of Stripe today. With Install Links you can pass state along when you onboard your users outside of the Stripe Dashboard.

What is the experience and scenario you want to enable @clement911 ?

clement911 commented 1 year ago

@auchenberg-stripe The scenario is just a normal deep link scenario. That is, we want to share links in an email or in our app/website so that the user navigates to a specific page into their stripe dashboard.

We know the exact account_id that we want to direct the user to. The issue arises when the user belongs to multiple Stripe accounts. Deep links (and any link to the dashboard in general) seem to always load the dashboard with the most recently used stripe account.

Ideally, we could pass an additional query string account_id param to specify that we want to load the dashboard for a specific account.

For example: https://dashboard.stripe.com/customers?account_id=acct_XXXXX&open_drawer_app=com.example.app

p0wl commented 1 year ago

This is not related to stripe apps, but we have the same problem with customers that we have transferred using the PAN copy feature. They now exist in multiple stripe accounts with the same customer ID and it would be great to be able to deep link to a customer in a specific stripe account.

kevinpapst commented 9 months ago

Oha, seems this is still not solved 😢

Use-case: My internal customer management collects entries for multiple Stripe accounts, supports multiple accounts via webhooks ... Now (thanks to Murphys law) whenever I want to e.g. see a customer invoice I land on an error page, telling me that this customer does not exist. Now I have to switch the account, close the page, click the deep link to the invoice again. As I have to do that quite often every day, the only workaround is using multiple browsers. As you can imagine this is error prone as well.

While this doesn't sound too complicated to implement, my hopes are low, considering the age of this issue.

mrcoles commented 3 months ago

@kevinpapst I was independently just trying to figure out how I can link to a specific account in the stripe dashboard, and I’m seeing you can just make it the first part of the URL path, like:

https://dashboard.stripe.com/{acct_XXXXX}/customers

I’ve never worked with Stripe deep links though, so IDK if this helps with that, but it helps with the issue I’m encountering.