Startup Starter Kits
  • Launch Manual
    • Clone the Repository and Install Dependencies
    • Generate NextJS Apps or Components Using ssk-plugin
    • Start Your Project in Development Mode
    • Configure Your Environment Variables
    • Run Your Project in Production Mode Locally
    • Launch Your Project
  • SSK-Core Features
    • UI Components
    • Root Layout
    • SEO
    • Icons
    • Feature Flags
    • Utilities
    • Templates
      • Privacy Policy Template
      • Terms of Service Template
  • SSK-Pro Features
    • AI Chat Integration
      • Setting Up AI Providers
      • Using the Pre-built Chat Component
      • Securing Chatbot Conversations
      • Testing and Customizing AI Responses
    • Google Analytics
      • Setting Up Google Analytics
      • Implementing Pageview Tracking
      • Handling Cookie Consent
      • Tracking Events
    • Payments Integration
      • Stripe Payments
        • Setting Up Your Stripe Account
        • Installing Stripe in Your Application
        • Implementing in Your Project
      • Lemon Squeezy
        • Setting Up Lemon Squeezy Account
        • Configuring the Webhook Endpoint
        • Testing and Verifying Integration
    • Affiliate Marketing
      • Lemon Squeezy
      • Rewardful
    • Form and reCAPTCHA
      • Setting Up reCAPTCHA
      • Integrating reCAPTCHA with Forms
      • Verifying reCAPTCHA on the Backend
      • Environment Variables for reCAPTCHA
      • Testing reCAPTCHA Integration
    • Email Integration with Nodemailer
      • Setting Up Email Server
      • Sending Contact Requests
    • Authentication
      • Auth with Google
      • Implement Auth0
  • SSK-Core GitHub Repo
  • SSK-Pro GitHub Repo
  • Contact Support
  • Three Tech Consulting
  • SSK-License
Powered by GitBook
On this page
  • Step 1 - Create a Lemon Squeezy Account
  • Step 2 - Obtain Webhook Secret
  • Step 3 - Enable Lemon Squeezy Integration with Feature Flags
  1. SSK-Pro Features
  2. Payments Integration
  3. Lemon Squeezy

Setting Up Lemon Squeezy Account

Chapter 1: Setting Up Your Lemon Squeezy Account

PreviousLemon SqueezyNextConfiguring the Webhook Endpoint

Last updated 6 months ago

Step 1 - Create a Lemon Squeezy Account

  1. Sign Up: Visit and create an account if you don’t already have one.

  2. Dashboard Access: After setting up your account, log in to access the Lemon Squeezy Dashboard.

Step 2 - Obtain Webhook Secret

  1. Navigate to Webhooks: In the Lemon Squeezy Dashboard, locate the webhooks section under your account settings.

  2. Create Webhook:

    • Add a webhook URL to handle events (e.g., https://yourdomain.com/api/webhook).

    • Select the relevant events, such as order_created.

  3. Copy the Webhook Secret: This secret is essential for signature verification.

  4. Add to Environment Variables: In your project’s .env file, add:

    LEMONSQUEEZY_WEBHOOK_SECRET=your_webhook_secret

Step 3 - Enable Lemon Squeezy Integration with Feature Flags

SSK-Pro allows you to toggle payment providers via feature flags. Set the Lemon Squeezy feature flag in your .env file to enable this integration.

FF_LEMON="true" # Enables Lemon Squeezy
FF_LEMON_SQUEEZY_AFFILIATES="true" # Enables Lemon Squeezy Affiliates
FF_STRIPE="false" # Disables Stripe if using Lemon Squeezy

For consistency and to prevent conflicts, only one payment provider (Stripe or Lemon Squeezy) should be enabled.

Lemon Squeezy