Git Product home page Git Product logo

meteroid-oss / meteroid Goto Github PK

View Code? Open in Web Editor NEW
491.0 10.0 25.0 11.21 MB

Open-source Pricing and Billing Infrastructure ๐Ÿš€ Subscription management, Invoicing, Pricing, Usage-based billing, Cost limiting, Grandfathering, Experiments, Revenue analytics & Actionable insights

Home Page: https://meteroid.com

License: GNU Affero General Public License v3.0

Rust 62.69% Dockerfile 0.44% PLpgSQL 1.32% JavaScript 5.13% TypeScript 29.63% CSS 0.25% Shell 0.15% HTML 0.02% SCSS 0.37%
billing invoicing plg revenue saas stripe analytics api clickhouse metering payments pricing rust self-hosted typescript usage-based-billing subscriptions modern-data-stack

meteroid's Issues

Bug: Inactive Pricing Link in Footer Section

Description:
In the footer section of the web application, the pricing link appears to be inactive. Clicking on it doesn't lead to any expected behavior or destination.

Steps to Reproduce:

  1. Navigate to the landing page of the web application
  2. Scroll down to the footer section.
  3. Attempt to click on the pricing link.

Expected Behavior:
Clicking on the pricing link in the footer should redirect the user to the pricing page, - /pricing, allowing them to explore pricing options.

Screenshot from 2024-04-30 14-42-53

How to run locally (without Docker)?

I'm expecting that's it's probably something simple like

cargo build --release meteroid
./targets/release/meteroid --port 1234 --env ./meteroid.env

But I'm not a Rust developer and I use VPSes and LXDs directly because I just can't wrap my head around Docker.

[BE] Add webhook

Organizations should be able to define webhook endpoints per tenant on which they will receive webhook events.
For now, all events will be sent to each webhook.

  • add the webhook_endpoint entity & crud
  • create a webhook service interface that will be used to track envents.
    We will have 2 impls :
    • a svix impl (production, svix handles queues, retries etc)
    • a simple http one, dependency-less, for dev/simple setups
      Signature handling should be the same in both impl
  • Emit webhook messages for a couple of actions :
    • customer created
    • draft invoice created
    • invoice finalized
    • subscription created

[BE] Cancellations

Add an api to cancel a subscription (with an optional cancellation reason)

Termination can be :

  • at the end of the period
  • now
  • at a date in the future

Mark the subscription as cancelled with the proper cancellation date/end date.
Make sure no invoice is emitted past this point.

If now/specific date is NOT the end of the period :

  • emit an invoice at cancellation if there are in-arrear fees
  • if there are advance fees that have been paid for the full period, we will emit a credit note for the unused number of days, make it a placeholder for now
  • check that if a period is partial because of the end date, we apply prorating too (for now we only checked for a partial first period)

[BE] Credit note

Credit note are used to refund or credit back a customer.
They are linked to an invoice, and can apply to specific product items, and all/some of the amount.
They can be generated automatically (ex: downgrade before the end of the period) or issued via the UI/API.

They can either :

  • emit a refund (auto via stripe, or manual via webhook) (finalized invoice with succeeded payment only) => tracked via refund_status
  • create a credit grant in meteroid

For each line item, a credit amount is provided, max the amount excl tax

For this issue, use a placeholder for the credit grant part

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.