Lemon Squeezy License Keys Setup
Current Lemon Squeezy Interface
The license key prefix setting location may vary depending on when you set up your Lemon Squeezy account. Here are the possible locations:
Option 1: License Keys Section in Product
- Create your product first
- After saving, look for a "License Keys" section
- Toggle "Enable license keys" to ON
- Look for "Format" or "Custom Format" options
- Set prefix to:
pswp_prod_
Option 2: Store Settings
- Go to Settings → "Store" or "General"
- Look for "License Key Settings" or "Default License Format"
- Set the prefix there
Option 3: No Prefix Setting Available
If you can't find a prefix setting:
- Enable License Keys (toggle ON)
- Leave prefix blank - Lemon Squeezy will generate keys automatically
- Update your code to accept any format license key
Option 4: Contact Lemon Squeezy Support
If you can't find license key settings:
- Enable license keys on your product
- Contact Lemon Squeezy support to set up custom prefix
- Or use the default format they provide
Recommended Approach: Flexible License Key Validation
Since the prefix setting might not be available, let's make your system flexible to accept any license key format:
Update License Validation Code
Instead of requiring pswp_prod_ prefix, your system can accept any license key that Lemon Squeezy generates.
Benefits:
- ✅ Works with any Lemon Squeezy license key format
- ✅ No dependency on specific prefix settings
- ✅ More flexible for future changes
- ✅ Easier setup process
Quick Setup Without Prefix
Create Product:
- Name:
PhotoFlow SEO - Site License - Price:
$99.00USD - Billing: Annual subscription
- Name:
Enable License Keys:
- Toggle "Enable license keys" to ON
- Use whatever format Lemon Squeezy provides
- No need to set custom prefix
Test the Flow:
- Make test purchase
- Verify license key is generated
- Test your API with the generated key
Updated Documentation
Your system is already flexible enough to handle any license key format. The prefix was just a preference, not a requirement.
Continue with the setup - you can enable license keys without a custom prefix!