Configure billing for your application.
apps/web/config.ts
. We can see the schema in the packages/design-system/types/pricing.d.ts
package. Let me show you some important parts:
one-time
: The product is one-time purchase.month
: The product is subscription-based and renews monthly.year
: The product is subscription-based and renews yearly.priceId
is the ID of the price in your billing provider. It is used to create the checkout session and to display the correct price in the UI.
priceId
from the provider (e.g. Stripe) or variantId
(e.g. Lemon Squeezy) , some providers use productId
instead of priceId
. Just use priceId
to store it.