Lemon Squeezy does not provide automatic redirects for checkout links, storefront URLs, Lemon.js overlays, API endpoints, or webhooks after its 2027 shutdown. Every buy button, embed, email template, and webhook handler needs to be located and replaced before cutover. Start with a thorough inventory.
1. Audit every reference in your codebase
Run these searches across every repository (marketing site, docs, desktop/mobile apps, and backend services):
# Script tags and overlay classes
rg -n -i "lemon\.js|app\.lemonsqueezy\.com/js|lemonsqueezy-button"
# Checkout URLs and custom checkout data
rg -n -i "lemonsqueezy\.com/(checkout|buy)"
rg -n -F "checkout[custom]"
rg -n "LemonSqueezy\.(Url|Setup)|Checkout\.Success|PaymentMethodUpdate"
# API calls and License API endpoints
rg -n -i "api\.lemonsqueezy\.com|@lemonsqueezy|lemonSqueezySetup"
rg -n "/v1/(checkouts|subscriptions|orders|customers|license-keys|licenses)"
# Webhooks and environment variables
rg -n -i "x-signature|x-event-name|order_created|license_key_created"
rg -n -i "LEMONSQUEEZY_|LEMON_SQUEEZY_"
Also audit places code search cannot reach: CMS pages, newsletter sequences, documentation links, PDFs, YouTube descriptions, and CI/CD secret vaults. Pay special attention to checkout[custom] fields—make sure your new checkout flow preserves any user or tenant metadata your backend expects.
2. Put stable URLs on your own domain first
Never scatter raw third-party checkout URLs across emails and docs again. Put clean routes on your own domain (for example yoursite.com/buy/pro) and redirect them at your edge or reverse proxy:
location = /buy/pro {
return 302 https://shop.copperpouch.com/shops/your-store/products/pro;
}
Verify every redirect with curl -I https://yoursite.com/buy/pro. If you ever change pricing pages or add promotions later, you update one redirect instead of hunting through years of links.
3. Replace each Lemon Squeezy integration cleanly
| Lemon Squeezy piece | Replacement on CopperPouch |
|---|---|
| Hosted checkout link | CopperPouch hosted storefront product URL or Checkout API session |
| Lemon.js overlay button | Direct link to your hosted checkout or storefront cart (remove lemon.js) |
| License API calls | Swap base URL to https://api.copperpouch.com/compat/lemon-squeezy—keep existing request code |
| Webhook verification | CopperPouch verifies Stripe Connect and PayPal webhooks natively and automates fulfilment, receipts, refunds, and dispute revocation |
4. Migrate webhooks and fulfilment cleanly
With Lemon Squeezy, many teams wrote custom webhook handlers just to send download links, issue licenses, or revoke access on refunds. CopperPouch handles verified settlement, virus-scanned file delivery, software license issuance, receipts, and automatic refund/dispute revocation directly on its own transactional ledger—eliminating most custom webhook glue altogether.
If you run a custom backend alongside CopperPouch, use the official @copperpouch/sdk-js TypeScript SDK for checkout and licensing, and verify every checkout route in sandbox mode before flipping live traffic. See the complete migration plan, license key migration guide, and migration checklist.