Assistance/Revenue Attribution
Revenue Attribution

Attribute revenue with Stripe Checkout API

Before proceeding, confirm that you have linked your Stripe account.

The current Stripe webhook routes payments by reading metadata.websiteId from the Checkout Session or invoice object.

JavaScript
const session = await stripe.checkout.sessions.create({
  line_items: [...],
  mode: 'payment',
  metadata: {
    websiteId: 'flid_******',
  },
});

Supported Stripe webhook events

  • checkout.session.completed
  • invoice.payment_succeeded
  • charge.refunded

If you need visitor-level attribution, make sure the Stripe customer or checkout flow also gives Flowsery enough information to match the payer, typically by email.