pricing.config.ts
This file is used to configure the pricing of the app and contains all the Stripe related information such as the pricing plans, free trial, etc.
You can customise the available plans inside the defaultPricingPlans. The code will then get the correct one based on the billingPlan
that was specified inside the billing.config.ts
.
It’s recommended to not change the FREE_STRIPE_PRICE_INDICATOR
as this is used for the free plan and used throughout the
codebase.
You’re gonna notice that we also have a pricingCardFeatures
and pricingComparisonFeatures
object inside our pricing.config.ts
file.
pricingCardFeatures
is used to configure what features to show on the pricing card pricing-card.tsx
pricingComparisonFeatures
is used to configure what features to show on the pricing comparision table pricing-comparison.tsx
To-Do’s:
- Configure the
name, description, price, stripe_price_id and subscription_tier
for each of the plans inside thedefaultPricingPlans
. You can find the stripe_price_id in Stripe. - Configure the
pricingCardFeatures
anddefaultPricingFeatures
objects to contain the relevant features for each subscription.
FYI: You’ll be shown in the Stripe section how to create the plans and get the stripe_price_id
for each plan.