Talivia Docs
Talivia Docs
HomeDashboard
IntroductionInstallationTeamGetting updates
Stripe
Yolfi
Dodo Payments
LemonSqueezy
LemonSqueezy Checkout LinksLemonSqueezy Checkout APILemonSqueezy Return URL FallbackLemonSqueezy Subscriptions and RenewalsTest and troubleshoot LemonSqueezy
Polar
Manual Payment APITesting payment integrations
Integrations
llms.txtllms-full.txt
RevenueLemonSqueezy

LemonSqueezy Checkout Links

Attribute a hosted LemonSqueezy checkout or standard overlay link automatically.

View Markdown

Use this flow when a customer clicks a reusable LemonSqueezy Checkout Link on a page where the Talivia tracker is installed.

Add the link to your site

Use the original share URL containing /checkout/buy/. Do not copy the single-use cart URL created after checkout opens.

Hosted LemonSqueezy checkout
<a href="https://YOUR_STORE.lemonsqueezy.com/checkout/buy/VARIANT_ID">
  Buy now
</a>

Talivia adds the current session without removing discount, quantity, or other existing query parameters:

checkout[custom][talivia_session_id]=s_...

LemonSqueezy returns this value as meta.custom_data.talivia_session_id in order and subscription webhook events. Talivia uses it to connect the revenue to the originating visit.

Checkout overlay

The same automatic behavior works when a normal Checkout Link is used as a Lemon.js overlay button:

Lemon.js overlay link
<a
  class="lemonsqueezy-button"
  href="https://YOUR_STORE.lemonsqueezy.com/checkout/buy/VARIANT_ID"
>
  Buy now
</a>

The link must still be a standard anchor on the tracked page. If your application creates a custom checkout or calls LemonSqueezy.Url.Open() with a URL generated elsewhere, continue with Checkout API.

No manual webhook setup is needed. Connecting LemonSqueezy in Website settings creates the signed order, subscription, and refund webhook.

LemonSqueezy

Choose your LemonSqueezy checkout flow and attribute its orders and subscriptions to Talivia traffic.

LemonSqueezy Checkout API

Pass the Talivia session when your backend creates a custom LemonSqueezy checkout.