Collect payments using Lemon Squeezy

Shipped supports Lemon Squeezy to collect payment. First of all, you need to create a store. If you haven't, follow the guide.

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

  1. Log into Lemon Squeezy

  2. Go to Settings

  3. Click on Webhooks

  4. Click on the "+" icon

  5. Fill in Callback URL with

  6. Fill in Signing Secret with the Secrets Generator of Shipped

  7. Select all the events

  8. Click Save Webhook

  9. open .env and set LEMONSQUEEZY_WEBHOOK_SECRET with the Signing Secret value

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.

Last updated