Codapult
ЦеныПлагиныДокументация
Codapult

SaaS-бойлерплейт для разработчиков

Продукт

  • Цены
  • Плагины
  • Документация

Компания

  • Контакты
  • GitHub

Правовая информация

  • Политика конфиденциальности
  • Условия использования

© 2026 Codapult. Все права защищены.

Все статьи

Getting Started

  • Introduction
  • Quick Start
  • Project Structure

Configuration

  • Environment Variables
  • App Configuration

Authentication

  • Authentication
  • OAuth Providers
  • Two-Factor & Passwordless
  • Enterprise SSO (SAML)

Database

  • Database
  • Migrations

Teams

  • Teams & Organizations
  • Permissions & RBAC

Payments

  • Payments & Billing
  • Stripe Setup
  • LemonSqueezy Setup
  • Polar Setup
  • Payment Webhooks

Api

  • API Layer
  • tRPC
  • GraphQL

Ai

  • AI Features

Email

  • Email
  • Email Templates

Infrastructure

  • Infrastructure
  • File Storage
  • Background Jobs

Ui

  • UI & Theming

I18n

  • Internationalization

Content Management

  • Content Management

Admin

  • Admin Panel

Security

  • Security

Monitoring

  • Analytics & Monitoring

Modules

  • Module Architecture

Plugins

  • Plugin System
  • AI Kit Plugin
  • CRM Plugin
  • Helpdesk Plugin
  • Email Marketing Plugin

Deployment

  • Deployment
  • Troubleshooting

Upgrading

  • Upgrading Codapult

Developer Tools

  • MCP Server
  • Testing
Payments

LemonSqueezy Setup

Configure LemonSqueezy as an alternative payment provider with automatic tax handling.

LemonSqueezy is a Merchant of Record — it handles VAT, sales tax, and compliance globally, so you don't have to.

Setup

PAYMENT_PROVIDER="lemonsqueezy"
LEMONSQUEEZY_API_KEY="your-api-key"
LEMONSQUEEZY_STORE_ID="your-store-id"
LEMONSQUEEZY_WEBHOOK_SECRET="your-webhook-secret"

Get your credentials from the LemonSqueezy Dashboard.

Differences from Stripe

FeatureStripeLemonSqueezy
Tax handlingYou handle (or use Stripe Tax)Automatic (MoR)
Multi-line checkoutYes (base plan + add-ons)Single product per checkout
Customer portalStripe-hosted portalLemonSqueezy-hosted portal
Connect / marketplaceYes (Stripe Connect)Not supported
Webhook eventsStripe event namesLemonSqueezy event names

Codapult's adapter normalizes both providers behind the same interface, so your application code stays the same.

Webhook Setup

The LemonSqueezy webhook endpoint is POST /api/webhooks/lemonsqueezy.

  1. Go to LemonSqueezy → Settings → Webhooks
  2. Add endpoint: https://your-app.com/api/webhooks/lemonsqueezy
  3. Set the signing secret
  4. Select subscription and order events

Product Configuration

Create your products and variants in the LemonSqueezy dashboard, then map them to plan IDs in src/lib/payments/plans.ts. The adapter uses the LemonSqueezy variant ID to match plans during checkout and webhook processing.

Environment Variables

VariableRequiredDescription
LEMONSQUEEZY_API_KEYYesLemonSqueezy API key
LEMONSQUEEZY_STORE_IDYesYour LemonSqueezy store ID
LEMONSQUEEZY_WEBHOOK_SECRETYesWebhook signing secret

For the full LemonSqueezy documentation, see docs.lemonsqueezy.com.

Stripe SetupPolar Setup