A webhook signing secret is a shared key that lets Provedly confirm a purchase event really came from Stripe or Shopify and was not altered on the way. It is the reason Provedly can put a "Verified purchase" mark on a notification: the mark means the signature checked out. This post explains what a webhook is, what the signature does, how to connect each platform, and what the secret can and cannot do if it leaks.
Webhooks in one paragraph. When something happens in your payment platform, such as a completed order, the platform can send an HTTP request to a URL you specify, with the details in the body. That request is a webhook. It is the platform pushing news to Provedly, rather than Provedly repeatedly asking. For Shopify, the relevant event is orders/create. For Stripe, it is typically checkout.session.completed or payment_intent.succeeded.
The problem with any URL that accepts a POST is that anyone can POST to it. Without a check, a person could send Provedly a fake "order" and have it displayed as real. The signature is that check.
What the signature does
Both Stripe and Shopify sign each webhook with HMAC-SHA256. The platform takes the raw request body, computes a hash using a secret that only it and you know, and sends the hash in a header. Provedly recomputes the hash with the same secret and compares. If they match, two things are established at once: the request came from someone holding the secret, and the body was not modified in transit.
If they do not match, the request is discarded. It is not shown, not stored as a purchase, and not counted. There is no "unverified purchase" bucket. There are verified purchases, which came through this check, and there are records the merchant added another way, which are always labelled: "Sample" for rows added by hand, "Imported" for rows from a CSV or the Records API. Nothing sits in between.
That is the whole basis of the "Verified purchase" mark, and it is why we can state on the public verification page which sources are connected and when the last verified purchase arrived. /blog/reading-the-verification-page explains how a shopper reads that page.
Connecting Shopify
If you installed Provedly from the Shopify App Store, you do not handle the secret at all. Shopify registers the webhooks when the app is installed and signs them with a secret tied to the app. Provedly verifies them automatically. The setup is covered in /blog/shopify-setup-guide.
One thing to know: because of Shopify's Protected Customer Data program, early webhooks may arrive without the buyer's name. They are still signed and still verified; the toast simply says "Someone" until access is approved. /blog/shopify-someone-protected-customer-data has the details.
Connecting Stripe
For sites outside Shopify, you create a webhook endpoint in your Stripe dashboard pointing at the URL Provedly gives you, select the events, and Stripe shows you a signing secret for that endpoint. It starts with whsec_. You paste it into Provedly's source settings once.
A few points for doing this well.
- Use a dedicated endpoint. Create a new endpoint for Provedly rather than reusing one your own application listens on. Each endpoint has its own secret, so a problem with one does not touch the other.
- Select only the events you need. Provedly needs completed payments. It does not need customer updates, disputes or payouts.
- Live mode, not test mode. Test-mode events are signed with a different secret and describe payments that did not happen. Connect a live-mode endpoint to your production site so test payments are never presented as real ones.
- Paste it once. After you save, treat the secret as stored. If you lose track of it, roll it in Stripe and paste the new one.