Shipped
HomeContacts
  • Get started
  • 📚Tutorials
    • Make a waiting list
    • Launch a pre-sale
    • Build a SaaS
    • Create your store on Lemon Squeezy
  • 🟩Features
    • AI Services
    • Affiliate Program
    • Analytics
    • Authentication
      • MailChimp
      • Loops
      • AWS SES
      • SendGrid
      • Supabase Auth
        • Supabase Authentication Flow
        • Supabase Magic Link
        • Supabase Email & Password
        • Supabase Login with Google
    • API endpoints
      • 🛡️Authenticated API
    • Blog
    • Customer support
    • Chrome Extension
    • Dark mode
    • Database
      • Update your database
      • MongoDB
    • Emails
    • Error pages
    • Icons
    • Onboarding
    • Payments
      • Lemon Squeezy
        • Subscriptions
        • One-time purchase
        • Test mode
      • Stripe
    • Private pages
    • SEO
    • shadcn/ui
    • Supabase
    • Workspace / Organizations
  • 📦Components
    • AccountMenu
    • CtaBox
    • DarkModeSwitch
    • Explainer video
    • FAQ
    • Features
    • Footer
    • Header
    • Hero
    • Lifetime
    • Pricing
    • Sales Notification
    • Secondary Sidebar Pages
    • Sidebar
    • Tabs
    • Testimonials
    • Waitlist
    • WebAppPage
  • 🚀Deployment
  • ✅Other
    • Configuration
    • Changelog widget
    • Favicon
    • Google Fonts
    • Sitemap
    • Theme
  • Updates
  • GitHub Repository
  • Support
Powered by GitBook
On this page

Was this helpful?

  1. Features
  2. Payments

Lemon Squeezy

PreviousPaymentsNextSubscriptions

Last updated 4 months ago

Was this helpful?

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.

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

  1. Go to Settings

  2. Click on Webhooks

  3. Click on the "+" icon

  4. Fill in Callback URL with https://yourwebsite.com/api/webhooks/lemonsqueezy

  5. 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

  6. Click Save Webhook

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

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

Log into

Fill in Signing Secret with the of Shipped

🟩
follow the guide
Lemon Squeezy
Secrets Generator
Lemon Squeezy Webhook Settings