If one Stripe account takes payments for several products, every sale reaches every webhook you point at it. Without a filter, a purchase notification on your course page can announce someone buying your SaaS plan, and a "recent orders" number can count both. The fix is a product filter on the Stripe connection: a short list of product ids, price ids or metadata rules, and only payments that match one of them become records. Everything else is ignored and never stored.
This guide explains when you need the filter, which rule to use for which kind of Stripe payment, and how $0 invoices are handled.
Why a shared Stripe account causes wrong proof
Stripe sends webhooks per account, not per product. If you sell an ebook, a template pack and a monthly membership from the same account, a checkout.session.completed event fires for all three. A social proof widget that reads those events cannot tell them apart unless you tell it how.
The result is proof that is technically real and still misleading. "Ana from Lisbon just bought" is true, but if Ana bought the template pack and the toast is on the membership sales page, the visitor reads it as a membership sale. The real orders bar has the same problem: it would add every product's sales into one number.
You need the filter when any of these apply:
- One Stripe account sells more than one product, and each has its own page or site.
- You run two businesses, or a business and a side project, on one account.
- You resell or bundle, and only some sales should appear on a given page.
If your Stripe account only ever sells one thing, leave the filter empty and every payment counts.
The three kinds of rule
Open the widget, go to the Data tab, find the Stripe connection and click Shared account? Filter by product. You get one text box, one rule per line. A payment passes if it matches any one rule.
| Rule | Example | What it matches |
|---|---|---|
| Product or price id | prod_Q1abc... or price_1Pxyz... |
A product or price on one of the payment's invoice lines |
| Metadata key and value | app=course |
A payment whose metadata has that key with exactly that value |
| Metadata key | course |
A payment whose metadata has that key, whatever the value |
Metadata is read from the payment object itself, from its invoice lines and their prices, and from the subscription details on an invoice. So metadata you set on a subscription is seen when that subscription's invoices are paid.
Which rule fits which checkout
The detail that trips people up: product and price ids are read from invoice lines. Not every Stripe event carries them.
| How you sell | Event to select | Rule that works |
|---|---|---|
| Subscriptions, renewals | invoice.paid |
Product or price id, or metadata on the subscription |
| One-time Stripe Checkout or Payment Links | checkout.session.completed |
Metadata on the Checkout Session |
| Payment Intents without Checkout | payment_intent.succeeded |
Metadata on the PaymentIntent |
A one-time Checkout Session event does not include its line items, so a prod_ rule will not match it. For one-time sales, put a metadata key on the session when you create it, for example app=course, and use app=course as the rule. If you sell through Payment Links, set the metadata on the Payment Link and send one test payment to confirm it arrives on the session before you rely on it.
A sensible setup for a mixed account looks like this:
price_1PmonthlyMembership
price_1PyearlyMembership
app=membership
The two price ids catch subscription invoices. The metadata rule catches one-time Checkout sales you tagged yourself.