Payments
Setup your pricing plans
We support both subscription
and one-time payment
for Stripe
.
-
Create
Stripe
account. -
Open Stripe dashboard and enable
Test mode
:
-
Create your Stripe products
here
then add the product ids into/configs/pricing.tsx
inStripePricingPlans
list. -
Copy API secret key in
here
into.env
:
- Setup webhook for local development:
-
Follow this
guide
to download and runStripe CLI
in your local machine. -
After running Stripe CLI, it will automatically generate the webhook secret, copy and paste into
.env
:
- Active
Customer billing portal
for test mode.
We only support
month
andyear
subscription interval for now