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

Create new Billing endpoints in the front end and backend #449

Open
anamarn opened this issue Feb 19, 2025 · 0 comments
Open

Create new Billing endpoints in the front end and backend #449

anamarn opened this issue Feb 19, 2025 · 0 comments
Assignees
Labels
scope: front Issues that are affecting the frontend side only

Comments

@anamarn
Copy link

anamarn commented Feb 19, 2025

Right now I use the same endpoints in the resolver and using an alternative path given the value of the feature flag. I would like to add new endpoints in the resolver that uses the notions of plan Key:

FrontEnd GQL:

  • getProductPrices => billingBaseProduct (BillingPlan Output -> Base Product -> [Reccuring Interval, StripePriceId])
  • upgradeOrDowngradeBillingPlan (change the stripe prices ids to the ones corresponding to the other plan, remember to update the subscription metadata in order to contain the plan Key)

Use the Plans query and select the correct fields in gql

@anamarn anamarn self-assigned this Feb 19, 2025
@anamarn anamarn converted this from a draft issue Feb 19, 2025
@anamarn anamarn moved this from 🔖 Planned to 🏗 In Progress in 🎯 Roadmap & Sprints Feb 21, 2025
@anamarn anamarn added the scope: front Issues that are affecting the frontend side only label Feb 21, 2025
@anamarn anamarn moved this from 🏗 In Progress to 👀 In review in 🎯 Roadmap & Sprints Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: front Issues that are affecting the frontend side only
Projects
Status: 👀 In review
Development

No branches or pull requests

1 participant