Guide
PaymentSetup

PaymentSetup

lemonsqueezy Setup

create store

Set Key to .env:

open .env

STORE_ID=

https://app.lemonsqueezy.com/settings/stores (opens in a new tab) copy store_id

LEMONSQUEEZY_API_KEY=

https://app.lemonsqueezy.com/settings/api (opens in a new tab) copy api_key

LEMONSQUEEZY_WEBHOOK_SECRET=

https://app.lemonsqueezy.com/settings/webhooks (opens in a new tab) set your webhook & LEMONSQUEEZY_WEBHOOK_SECRET webhook url: [base_url]/api/billing/webhook

create product

https://app.lemonsqueezy.com/products (opens in a new tab)

copy product variant ID

go to project

variant_list input your product info

    {
        "variant_id": 999999,
        "credits": 10000,
        "pay_type": "member",
        "show_name": "Basic",
        "price": "$9.9",
        "feature_list": [
            "10,000 credits per month",
            "Image generation (15 credits/image)",
            "Image understanding (15 credits/image)",
            "~666 total images per month",
            "High-quality image generation",
            "Advanced image understanding",
            "Basic API access"
        ]
    },

Stripe Setup

todo