Setting Up Lemon Squeezy Account
Chapter 1: Setting Up Your Lemon Squeezy Account
Step 1 - Create a Lemon Squeezy Account
Sign Up: Visit Lemon Squeezy and create an account if you don’t already have one.
Dashboard Access: After setting up your account, log in to access the Lemon Squeezy Dashboard.
Step 2 - Obtain Webhook Secret
Navigate to Webhooks: In the Lemon Squeezy Dashboard, locate the webhooks section under your account settings.
Create Webhook:
Add a webhook URL to handle events (e.g.,
https://yourdomain.com/api/webhook
).Select the relevant events, such as
order_created
.
Copy the Webhook Secret: This secret is essential for signature verification.
Add to Environment Variables: In your project’s
.env
file, add:LEMONSQUEEZY_WEBHOOK_SECRET=your_webhook_secret
Step 3 - Enable Lemon Squeezy Integration with Feature Flags
SSK-Pro allows you to toggle payment providers via feature flags. Set the Lemon Squeezy feature flag in your .env
file to enable this integration.
FF_LEMON="true" # Enables Lemon Squeezy
FF_LEMON_SQUEEZY_AFFILIATES="true" # Enables Lemon Squeezy Affiliates
FF_STRIPE="false" # Disables Stripe if using Lemon Squeezy
For consistency and to prevent conflicts, only one payment provider (Stripe or Lemon Squeezy) should be enabled.
Last updated