# Setting Up Lemon Squeezy Account

## **Step 1 - Create a Lemon Squeezy Account**

1. **Sign Up**: Visit [Lemon Squeezy](https://lemonsqueezy.com) 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:

   ```bash
   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.

```bash
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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.startupstarterkits.com/ssk-pro-features/payments/index-1/chapter-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
