Payments
Configure code repository purchase options
The payments configuration defines options for code repository purchases, including pricing tiers and repository details.
Location
/config/payments.ts
Key Components
Code Repository Configuration
Usage
Refer to the NestSaaS code sales to learn more about the configuration usage:
app/(home)/home1/sections/pricing-landing
Integration with GitHub
The code repository configuration is designed to work with the GitHub API for automatic repository access after purchase. The repository should:
- Be within the same GitHub account as configured in
GITHUB_PERSONAL_TOKEN
- Be a private repository
Integration with Stripe
The configuration uses Stripe price IDs for payment processing:
- Update the
priceId
values with your actual Stripe price IDs for each tier - The
priceOrigin
andprice
fields can be used to display original and discounted prices