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:
Navigate to the landing page of the web application
Scroll down to the footer section.
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.
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
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)
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