logo

Payment Integration with LemonSqueezy

Invalid DatePreet Suthar

To set up payment integration with Lemon Squeezy:

  1. Create a Lemon Squeezy Account.
  2. Set up your store:
    • Add branding and configure settings.
  3. Create products and variants:
    • Define your pricing plans and features.
  4. Configure webhooks:
    • Add a webhook URL in Lemon Squeezy: https://<your-domain-name>/api/webhooks/lemon-squeezy.
  5. Add API keys to your .env.local file:
LEMON_SQUEEZY_API_KEY=your_api_key
LEMON_SQUEEZY_WEBHOOK_SIGNATURE=your_webhook_secret
LEMON_SQUEEZY_STORE_ID=your_store_id
NEXT_PUBLIC_LEMON_SQUEEZY_BASIC_VARIANT_ID=your_variant_id

Replace the placeholders with the actual values from your Lemon Squeezy dashboard.

Refer to the Lemon Squeezy API Documentation for more details.