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]: Display subscription info in org settings #1875

Closed
2 of 5 tasks
SuaYoo opened this issue Jun 19, 2024 · 2 comments · Fixed by #1908
Closed
2 of 5 tasks

[Feature]: Display subscription info in org settings #1875

SuaYoo opened this issue Jun 19, 2024 · 2 comments · Fixed by #1908
Assignees
Labels
back end Requires back end dev work front end Requires front end dev work

Comments

@SuaYoo
Copy link
Collaborator

SuaYoo commented Jun 19, 2024

Mockups

Backend changes

  • Update helm chart to include new settings
  • New fields in GET /api/settings:
    • Required: Is billing/subscriptions enabled?
    • Sales email address
  • New GET /api/orgs/{oid}/billing endpoint with fields:
    • Required: Subscription status, one of 'active', 'canceled', 'incomplete', 'incomplete_expired', 'past_due', 'paused', 'trialing', 'unpaid'
    • Link to manage plan
    • Next payment date (nice to have)
    • Date subscription ends (free trial or expiring subscription) (nice to have)

Frontend changes

  • Show billing tab in org settings if billing is enabled in app settings
  • Show billing tab content like link to Stripe portal (if subscription_id in org) or “Contact sales”
@SuaYoo SuaYoo self-assigned this Jun 19, 2024
@SuaYoo SuaYoo added front end Requires front end dev work back end Requires back end dev work labels Jun 19, 2024
tw4l added a commit that referenced this issue Jun 25, 2024
…ndpoint (#1873)

Backend work for first two tasks of
#1875

New /billing API endpoint to be added separately once we have a better
idea of what data we can get from the payment processor.
tw4l added a commit that referenced this issue Jun 25, 2024
…ndpoint (#1873)

Backend work for first two tasks of
#1875

New /billing API endpoint to be added separately once we have a better
idea of what data we can get from the payment processor.
@ikreymer
Copy link
Member

ikreymer commented Jul 1, 2024

Current impl in progress: /api/orgs/{oid}/billing returns {"subUrl": <Subscription URL>, "subStatus": <Subscription Status>}

@SuaYoo
Copy link
Collaborator Author

SuaYoo commented Jul 2, 2024

@ikreymer @emma-sg could the backend API also return a subscription type of self-service or managed? That way we don't need to deal with details of all the subscription tiers right now, but we can handle showing different UI for the two. Per Discord convo, billing will return a null subscription object, from which the tier will be inferred for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back end Requires back end dev work front end Requires front end dev work
Projects
Status: Done!
Development

Successfully merging a pull request may close this issue.

3 participants