> For the complete documentation index, see [llms.txt](https://docs.shipped.club/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shipped.club/features/payments/lemon-squeezy.md).

# Lemon Squeezy

Lemon Squeezy (LS) is a Merchant of Records.

It supports more countries than Stripe, but it has a more strict approval process, because LS sells your products on your behalf worldwide, they collect VAT and remit taxes in the different countries for you.

It also has an affiliate system out-of-the-box.

Shipped supports LS for Subscriptions and One-time purchases.

<figure><img src="/files/TzdBuIguwaaf3pQJDYQ2" alt=""><figcaption></figcaption></figure>

Shipped supports Lemon Squeezy to collect payment. First of all, you need to create a store. If you haven't, [follow the guide](/tutorials/create-your-store-on-lemon-squeezy.md).

After that, you need to configure a webhook on Lemon Squeezy, follow these steps:

1. Log into [Lemon Squeezy](https://www.lemonsqueezy.com/)
2. Go to **Settings**
3. Click on **Webhooks**
4. Click on the "**+**" icon
5. Fill in **Callback URL** with <https://yourwebsite.com/api/webhooks/lemonsqueezy>
6. Fill in **Signing Secret** with the [Secrets Generator](https://shipped.club/free-tools/secret-password-generator) of Shipped
7. Select the events
   1. For subscriptions:
      1. `subscription_created`
      2. `subscription_updated`
      3. `subscription_cancelled`
      4. `subscription_resumed`
      5. `subscription_expired`
      6. `subscription_paused`
      7. `subscription_unpaused`
   2. For orders (one-time payments):
      1. `order_created`
      2. `order_refunded`
8. Click **Save Webhook**
9. open `.env` and set `LEMONSQUEEZY_WEBHOOK_SECRET` with the Signing Secret value

<figure><img src="/files/JDXQ39RGqgp2QNM6TBod" alt=""><figcaption><p>Lemon Squeezy Webhook Settings</p></figcaption></figure>

The webhook provided by **Shipped** is at `src/app/api/webhooks/lemonsqueezy/route.ts` and it will handle all the payments and subscription events for you.


---

# 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.shipped.club/features/payments/lemon-squeezy.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.
