Basic Saas Kit
Lemon Squeezy

Lemon Squeezy

Set up the API

Visit lemonsqueezy (opens in a new tab) to create a new key. Then, save it somewhere in the app, for example, in an .env.local file.

LEMONSQUEEZY_API_KEY=your_api_key

Add the Store ID:

LEMON_SQUEEZY_STORE_ID=your_store_id

Create a product

Visit the products (opens in a new tab) page to create a new product. Then, save the product variant id somewhere in the app. For example, we have a price list inside src/config/price.ts.

priceList = [
    {
        name: 'Course Launch Kit',
        productId: '269' // Product varient Id
        // Other Details
        
    }
    // other product
]

Create a webhook

Visit the webhooks (opens in a new tab) page to create a new webhook. Then, save the webhook id somewhere in the app, for example, in an .env.local file.

LEMONSQUEEZY_WEBHOOK_SECRET=your_webhook_id