Talivia Docs
Talivia Docs
HomeDashboard
IntroductionInstallationTeamGetting updates
Stripe
Stripe Checkout SessionsStripe Payment LinksStripe Payment IntentsStripe subscriptions and invoicesOther Stripe methodsTest and troubleshoot Stripe attribution
Yolfi
Dodo Payments
LemonSqueezy
Polar
Manual Payment APITesting payment integrations
Integrations
llms.txtllms-full.txt
RevenueStripe

Stripe Payment Links

Attribute no-code Stripe Payment Links directly or through a tracked return URL.

View Markdown

Payment Links need no custom checkout endpoint. Talivia supports a direct link signal and a return-URL fallback.

Direct attribution from the link

When the Talivia tracker sees a standard https://buy.stripe.com/... anchor, it adds the current session as Stripe's client_reference_id before navigation.

Standard Stripe Payment Link
<a href="https://buy.stripe.com/test_123">Buy now</a>

Stripe includes that reference on the resulting Checkout Session, and Talivia uses it when the payment webhook arrives.

Talivia never overwrites an existing client_reference_id. If your product already uses that parameter for a cart or customer ID, configure the return URL below as the attribution signal.

Automatic decoration has boundaries. It applies to normal links on buy.stripe.com. A custom Stripe domain or navigation performed directly with window.location should use the return URL or your own Checkout Session integration.

Configure the return URL

  1. Open the Payment Link in the Stripe Dashboard.
  2. Open After payment.
  3. Choose Redirect customers to your website.
  4. Set the URL to include Stripe's literal placeholder:
Payment Link redirect
https://your-site.com/thanks?session_id={CHECKOUT_SESSION_ID}
Stripe Payment Link After payment settings with a redirect URL containing the Checkout Session ID

Keep the Talivia tracker installed on the destination page. Talivia detects the Checkout Session ID, matches it with the verified Stripe webhook, and recalculates attribution even if the webhook arrived before the browser returned.

The return method works best when checkout and the destination page are opened in the same browser. Direct client_reference_id attribution does not depend on the customer returning after payment.

Stripe Checkout Sessions

Attribute hosted or embedded Stripe Checkout Sessions with Talivia metadata.

Stripe Payment Intents

Attribute direct Payment Intents used by custom checkout, Elements, or mobile payment flows.