Skip to main content

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

  1. Create your product first
  2. After saving, look for a "License Keys" section
  3. Toggle "Enable license keys" to ON
  4. Look for "Format" or "Custom Format" options
  5. Set prefix to: pswp_prod_

Option 2: Store Settings

  1. Go to Settings"Store" or "General"
  2. Look for "License Key Settings" or "Default License Format"
  3. Set the prefix there

Option 3: No Prefix Setting Available

If you can't find a prefix setting:

  1. Enable License Keys (toggle ON)
  2. Leave prefix blank - Lemon Squeezy will generate keys automatically
  3. Update your code to accept any format license key

Option 4: Contact Lemon Squeezy Support

If you can't find license key settings:

  1. Enable license keys on your product
  2. Contact Lemon Squeezy support to set up custom prefix
  3. Or use the default format they provide

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

  1. Create Product:

    • Name: PhotoFlow SEO - Site License
    • Price: $99.00 USD
    • Billing: Annual subscription
  2. Enable License Keys:

    • Toggle "Enable license keys" to ON
    • Use whatever format Lemon Squeezy provides
    • No need to set custom prefix
  3. 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!