Suporte/Revenue Attribution
Revenue Attribution

Attribute revenue with Stripe PaymentIntent API

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

Flowsery does not process a payment_intent.succeeded webhook directly. The supported Stripe webhook events are:

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

If your PaymentIntent-based flow eventually produces those supported objects, include metadata.websiteId consistently so the webhook can route the payment to the correct website.

JavaScript
const paymentIntent = await stripe.paymentIntents.create({
  amount: 2000,
  currency: 'usd',
  metadata: {
    websiteId: 'flid_******',
  },
});