Talivia Docs
Talivia Docs
HomeDashboard
IntroductionInstallationTeamGetting updates
Stripe
Yolfi
Dodo Payments
LemonSqueezy
Polar
Polar Checkout APIPolar Checkout LinksPolar Embedded CheckoutPolar subscriptions and renewalsOther Polar methodsTest and troubleshoot Polar
Manual Payment APITesting payment integrations
Integrations
llms.txtllms-full.txt
RevenuePolar

Other Polar methods

Attribute Polar revenue when checkout metadata or a tracked return URL is unavailable.

View Markdown

Some integrations create customers or orders through another billing layer and cannot pass talivia_session_id. In that case, link the visitor to the same customer identity that appears in Polar webhooks.

Use a stable external customer ID

Set Polar's external_customer_id to your own immutable user ID whenever your integration supports it. Then identify the signed-in visitor with that value.

Identify the application customer
window.talivia.identify(user.id, {
  email: user.email,
  externalCustomerId: user.id,
  providerName: 'polar',
});

If your backend already knows the Polar customer UUID, include it too.

Identify the Polar customer
window.talivia.identify(user.id, {
  email: user.email,
  externalCustomerId: user.id,
  providerName: 'polar',
  polarCustomerId: 'YOUR_POLAR_CUSTOMER_ID',
});

Use Checkout API whenever you control checkout creation. Direct session metadata is deterministic; customer identity is a fallback for checkouts and the primary signal for renewals.

If none of session metadata, a checkout return, external customer ID, Polar customer ID, or matching verified email is available, Talivia will still record the order but show it as unattributed.

Polar subscriptions and renewals

Preserve attribution across Polar subscription creation, lifecycle changes, and recurring orders.

Test and troubleshoot Polar

Verify the Polar connection, webhook, attribution, subscriptions, and refunds.