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

feat: Metered Billing Engine #321

Open
rflihxyz opened this issue Mar 17, 2024 · 2 comments
Open

feat: Metered Billing Engine #321

rflihxyz opened this issue Mar 17, 2024 · 2 comments
Assignees

Comments

@rflihxyz
Copy link
Contributor

rflihxyz commented Mar 17, 2024

The engine could use:

  • Stripe API (All inclusive product)
  • Paddle (All inclusive product)
  • Lago : https://www.getlago.com/ (Series A OSS Company, No Managed tax)

Favourite: Stripe > Lago

Open for suggestions @naelob

  • Building this early as billing users from day one is healthier.
  • Metered billing functions should be triggered only if (env.DISTRIBUTION === "managed")

Implementation:

  • Create a customer in Billing Systems when an org is created
  • Must only trigger when env === managed
  • Find a way to report usage to billing API without sending to many requests (ex: use timestamps to know last usage metering has been share to billing API).
@jdbohrman
Copy link

I can help with this!

@naelob
Copy link
Member

naelob commented Mar 29, 2024

I can help with this!

lets chat ! How you'd see the implementation ?

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

No branches or pull requests

3 participants