> ## Documentation Index
> Fetch the complete documentation index at: https://developers.paysum.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Lemon Squeezy

> Sell through Lemon Squeezy as merchant of record, so it handles tax and chargebacks.

## Set it up

**1. Create an API key**

In Lemon Squeezy, open Settings → API and create an API key.

**2. Copy your store ID**

Open Settings → Stores and copy the number next to your store. The store currency must match your Paysum store currency.

**3. Create one product for Paysum**

Create a single product, for example “Order”, with any price. Each checkout replaces its name and price, so you only need one. Copy its variant ID.

**4. Add the webhook**

Open Settings → Webhooks, add the webhook URL from the Connect dialog, choose a signing secret and tick order\_created and order\_refunded.

**5. Connect in the dashboard**

Open Payments → Payment setup → Lemon Squeezy, paste the API key, store ID, variant ID and signing secret, and select Connect. Choose Sandbox to create test-mode checkouts.

## Why the webhook is required

Lemon Squeezy can’t look up an order by our order number, so the signed order\_created webhook links its order to yours. Without it, orders stay pending.

## If something does not work

> [!NOTE]
>
> If checkout fails with a currency error, set your Lemon Squeezy store currency to your Paysum store currency. If orders stay pending, check the webhook’s signing secret and that order\_created is ticked.

Still stuck? [Contact support](https://docs.paysum.io/support) with the store, the page, and any order or request reference.

## Next steps

> [card] [Payment methods](https://docs.paysum.io/payments)
>
> Connect the accounts and wallets buyers use to pay your store.

> [card] [Orders and invoices](https://docs.paysum.io/orders)
>
> Find a transaction, inspect its status, and troubleshoot payment or delivery.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.