> For the complete documentation index, see [llms.txt](https://docs.startupstarterkits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.startupstarterkits.com/ssk-pro-features/payments/index-1/chapter-1.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
