๐ฏ Lemon Squeezy Setup - Next Steps
โ What's Already Doneโ
- โ
API Key: Configured in
.env - โ API Server: Running on http://localhost:4001
- โ Download System: Working
- โ Email Templates: Ready with PhotoFlow SEO branding
- โ Pro Package: Built and ready for distribution
๐ What You Need to Do (15 minutes)โ
Step 1: Get Store ID (2 mins)โ
- Go to: https://app.lemonsqueezy.com/settings/api
- Look for "Store ID" at the top (it's a number like
12345) - Copy it
Step 2: Create PhotoFlow SEO Product (5 mins)โ
Click "+ New Product"
Fill in:
Name: PhotoFlow SEO - Site License
Price: 99.00 USD
Billing: Annual subscription
Description:
AI-powered alt text, captions, and ImageObject schema for photo galleries.
Includes:
โข Automatic SEO-optimized alt text
โข AI-generated captions
โข ImageObject schema for search engines
โข Priority email support
โข All updates while activeCRITICAL - Enable License Keys:
- Scroll to "License Keys" section
- Toggle ON
- Format: Custom
- Prefix:
pswp_prod_ - Length: 32
- Activation limit: Unlimited
Click "Save Product"
Copy Product ID from URL:
app.lemonsqueezy.com/products/[NUMBER]
Step 3: Set Up Webhook (3 mins)โ
- Go to: https://app.lemonsqueezy.com/settings/webhooks
- Click "+ Add endpoint"
- Fill in:
URL: http://localhost:4001/api/webhooks/lemonsqueezy
Events: โ order_created
โ subscription_created
โ license_key_created - Click "Generate" for webhook secret
- Copy the webhook secret (starts with
whsec_...)
Step 4: Update .env File (2 mins)โ
Edit your .env file and replace these lines:
# Replace these with your actual values:
LEMON_SQUEEZY_STORE_ID=12345 # From Step 1
LEMON_SQUEEZY_PRODUCT_ID=67890 # From Step 2
LEMON_SQUEEZY_WEBHOOK_SECRET=whsec_abc123... # From Step 3
Step 5: Test Purchase (3 mins)โ
In Lemon Squeezy, toggle "Test Mode" (top right - orange banner)
Go to your product and click "Get checkout link"
Open the link in incognito/private window
Purchase with test card:
- Card:
4242 4242 4242 4242 - Expiry:
12/25 - CVC:
123 - Email:
test@example.com
- Card:
Check your API server console - should see:
๐จ Webhook received: order_created
๐ง [MOCK] License email would be sent to: test@example.com
License Key: pswp_prod_test123...
๐ You're Done!โ
Once you complete these steps, you'll have:
- โ Payment Processing: Lemon Squeezy checkout
- โ License Delivery: Automated email with license key
- โ Package Downloads: Secure .tgz distribution
- โ Customer Portal: Self-service license management
Ready to accept real customers! ๐
๐ Need Help?โ
Quick Links:
- Lemon Squeezy Dashboard: https://app.lemonsqueezy.com
- API Settings: https://app.lemonsqueezy.com/settings/api
- Products: https://app.lemonsqueezy.com/products
- Webhooks: https://app.lemonsqueezy.com/settings/webhooks
Test Your Setup:
# Check API server
curl http://localhost:4001/health
# Check license endpoint
curl http://localhost:4001/api/license/health
# Check download system
curl http://localhost:4001/api/download/latest
Your PhotoFlow SEO business is ready to launch! ๐