Skip to content

Fix credit-based-billing page title.mdx #3

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kits/next-supabase-turbo/billing/credit-based-billing.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
label: 'Credits Based Billing'
title: 'How to configure per seat billing in Makerkit'
title: 'How to configure credits based billing in Makerkit'
position: 7
description: 'Learn how to configure credit based usage in your Next.js Supabase application'
---
Expand Down Expand Up @@ -266,4 +266,4 @@ async function updateMessagesCountQuota(params: {
We assume that we have a table named `plans` that stores the pricing information for each plan. We also assume that we have a table named `credits` that stores the credits consumed by each user.
The `credits` table has a column named `tokens_quota` that stores the number of credits available to the user.

In the `onInvoicePaid` event handler, we get the variant ID from the invoice line items and update the `credits` table with the new credits.
In the `onInvoicePaid` event handler, we get the variant ID from the invoice line items and update the `credits` table with the new credits.