Skip to content
All articles

Product guides

One Stripe account, several products: count the right sales

If one Stripe account sells several products, filter its webhook by product, price or metadata so each widget only shows the sales that belong to it.

Provedly team··5 min read

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.

One account, several widgets

Each widget has its own Stripe connection with its own webhook URL and signing secret. Stripe lets one account send events to several endpoints, so the pattern is:

  1. In Stripe, add one webhook endpoint per widget, each with that widget's URL.
  2. Paste each endpoint's signing secret into the matching connection.
  3. Give each connection its own filter.

Each widget then receives every event, and keeps only its own. A purchase is still recorded once per widget even when you select several events for the same payment, because records are keyed on the payment rather than on the event.

If you duplicate a widget or run an A/B test, the copies use the original's connection, so there is still only one filter to maintain.

What happens to $0 invoices

Trials and 100% coupons produce payments of zero. Stripe still sends invoice.paid or checkout.session.completed for them, and a naive integration shows "Sam just purchased" for someone who paid nothing.

Provedly skips any payment with an amount of zero. A free trial that later converts shows up when the first paid invoice arrives, not when the trial starts. A fully discounted order never shows. This happens whether or not you use a filter.

Test the filter before you trust it on a live page:

  • Send a test event from the Stripe dashboard for a product that should match. The connection's "last event" should update and a record should appear on the Records tab with the Verified mark.
  • Send one for a product that should not match. Nothing should appear.
  • Check the toast copy. A filtered widget can still use {product} in its message, so a wrong product name stands out quickly.

The Stripe webhook setup guide covers the endpoint and signing secret steps in more detail.

Doing this with Provedly

The filter sits on every Stripe connection, on every plan including Free. Records that pass it get the "Verified purchase" mark, because they arrived through a webhook whose signature matched your secret. Payments that do not pass are dropped before anything is saved, so a filtered-out sale never appears on your verification page or in your counts.

Frequently asked questions

Do filtered-out payments count against my plan?

No. Plans are priced by impressions, meaning a notification shown to a visitor. A payment that does not match the filter is never stored, so it is never shown and never counted anywhere.

Can I change the filter later?

Yes. Edit the rules and save. The new rules apply to payments that arrive from then on. Records already stored stay as they are, so if an old record should not be on a widget, delete it from the Records tab.

My product id rule matches nothing. Why?

The most likely cause is that the payment is a one-time Checkout Session, which does not carry invoice lines in its event. Add a metadata key to the session when you create it and filter on that instead, or check that you selected invoice.paid for subscription payments.

Connect Stripe on the Free plan, no card needed: create your account.

stripewebhooksverified purchasesproduct filter

Get new articles by email

Honest social proof, verified purchases and what actually moves conversion. A few emails a month at most; leave with one click.

We email you once to confirm. Your address is used only for this newsletter; see the privacy policy.

Show proof you can stand behind.

Free plan, one site, 2,000 impressions a month, verified purchases included. The badge on the free plan links to your verification page, which is the point.