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

Other Stripe methods

Attribute revenue when Stripe is behind another billing layer or the checkout cannot pass Talivia metadata directly.

View Markdown

Choose the narrowest integration that still gives Talivia a server-verified payment.

Stripe objects remain in your connected account

If the third-party checkout creates a Payment Intent in the same Stripe account connected to Talivia, use Payment Intents. Attach talivia_session_id when the third party lets you supply Payment Intent metadata.

If metadata cannot be supplied, identify the signed-in customer with the same email or Stripe Customer ID present on the Stripe payment:

Connect customer identity
window.talivia.identify('user_123', {
  email: currentUser.email,
  stripeCustomerId: currentUser.stripeCustomerId,
});

This links identity; it does not create or confirm revenue in the browser. Stripe's signed webhook remains the source of truth for the payment.

The processor hides Stripe payment objects

Use the Manual Payment API after your backend confirms the payment. Send the Talivia session stored with the order and a stable transaction ID.

Record a third-party confirmed payment
await fetch('https://talivia.com/api/payments/manual', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-talivia-api-key': process.env.TALIVIA_API_KEY,
  },
  body: JSON.stringify({
    websiteId: 'YOUR_WEBSITE_ID',
    providerName: 'your-billing-provider',
    transactionId: payment.id,
    providerCustomerId: payment.customerId,
    email: payment.customerEmail,
    amount: payment.amount,
    currency: payment.currency,
    sessionId: order.taliviaSessionId,
  }),
});

Why there is no browser payment command

A public payment event can be replayed or fabricated. Talivia therefore separates the two responsibilities:

  • browser tracking and identify provide attribution context;
  • a signed Stripe webhook or authenticated backend API confirms revenue.

This keeps amounts and payment status trustworthy while still supporting custom billing flows.

Stripe subscriptions and invoices

Preserve attribution across subscription signup, renewals, failures, and lifecycle changes.

Test and troubleshoot Stripe attribution

Verify Stripe event delivery, payment recording, and session attribution independently.