Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: get_stripe_dashboard_url() #291

Open
jleclanche opened this issue Mar 22, 2017 · 4 comments
Open

Feature request: get_stripe_dashboard_url() #291

jleclanche opened this issue Mar 22, 2017 · 4 comments
Assignees
Labels

Comments

@jleclanche
Copy link
Contributor

jleclanche commented Mar 22, 2017

Had to implement a way to get the Stripe dashboard URL matching a stripe object for dj-stripe/dj-stripe#465. It'd be really nice if a solution for it were in the stripe library itself.

There is already a way in util.py to get the URL for a Request object, but not a generic way to get any object's dashboard url.

@remi-stripe
Copy link
Contributor

@jleclanche That's a cool idea that we're investigating right now. The issue is how to ensure that the URLs are still valid if you're on a version and then they change in the future. We're discussing it internally and I'll follow up once we come up with a plan!

@remi-stripe remi-stripe self-assigned this Mar 23, 2017
@blueyed
Copy link
Contributor

blueyed commented Apr 16, 2018

Has there been some progress / decision being made in this regard?
I would like to add it for pinax-stripe (via Django's get_absolute_url mechanism, pinax/pinax-stripe-light#435).

@remi-stripe
Copy link
Contributor

@blueyed It's not something we would build for now but I'll tag it as future as something we might want to look into!

@korinahoughtaling
Copy link

We have implemented our own "Stripe url builder" for the various resources. Here is our function def to give an idea of what it supports. It would be great to have Stripe make a method like get_stripe_dashboard_url publicly available

Generate Stripe Dashboard URLs for various object types.

    Stripe has a bunch of URL formats and places the `test` designation in different
    positions according to the object type.

    E.g.:
    Connect Account:
      /test/connect/accounts/acct_0N8rF0FbyN8hlaij/activity
    Transfers:
      /test/connect/transfers/tr_0N8tVbFVtiGrLzYl0TNjEDP3
    Charges:
      /test/charges/ch_2N8r5cFVtiGrLzYl1YqMYp7V
    Payments:
      /acct_0N8rF0FbyN8hlaij/test/payments/py_1N8rG9FbyN8hlaijTghfwear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants