This example fetches a custom checkout URL from our API and opens it in an overlay. This is the recommended approach for production applications.
Uses Lemon Squeezy's Checkouts API to generate a custom checkout URL with user data and preferences.
https://evokids.lemonsqueezy.com/checkout/buy/612052
https://evokids.lemonsqueezy.com/buy/612052
Note: If you see a 404 error when clicking these links, it means the variant ID or store URL is incorrect.
Current store URL: https://evokids.lemonsqueezy.com
Variant ID being used: 612052
Compare overlay and direct link subscription approaches
Opens the checkout in an overlay on the same page
Uses a standard link to the checkout page
Information to help debug issues with Lemon Squeezy integration
Store URL: https://evokids.lemonsqueezy.com
Using Overlay: Yes
Test Variant IDs: 612052 (monthly), 612053 (annual)