Does My App Check Stripe Webhook Signatures?
Short answer: verify the Stripe webhook signature before you trust an event, and do not fulfil an order only because someone reached your checkout success page.
Check your live app for free
Paste your link. The free summary usually takes under a minute.
See an example report (for example.org) · a real free scan of a test site, so you can see what you get
1. Verify the signature before you trust a webhook
When a payment succeeds, Stripe can send a message (a webhook event) to a URL on your server. Your app might use that message to unlock a paid plan, start a delivery, or update a record.
Stripe's docs are blunt: "Without verification, an attacker could send fake webhook events to your endpoint to trigger actions like fulfilling orders, granting account access, or modifying records. Always verify that webhook events originate from Stripe before acting on them" (Stripe: Webhooks).
Stripe signs every event and puts that signature in the Stripe-Signature header. You check it with the raw request body, that header, and your endpoint's signing secret (it starts with whsec_). Stripe says: "We recommend using our official libraries to verify signatures." If the check fails, do not fulfil anything (same page).
One more detail from the same page: "Stripe requires the raw body of the request to perform signature verification. If you’re using a framework, make sure it doesn’t manipulate the raw body. Any manipulation to the raw body of the request causes the verification to fail."
2. Do not fulfil only from the success page
After checkout, Stripe can send the customer to a landing page on your site (the success page). It is fine to show a thank-you message there. It is not safe to treat "they arrived on this page" as proof of payment.
Stripe says: "Webhooks are required for fulfillment." It also says you "You can’t rely on triggering fulfillment only from your checkout landing page, because it’s not guaranteed customers visit that page." A customer can pay successfully and then lose their internet connection before your page loads (Stripe: Fulfill orders).
Stripe also says: "Automatic fulfillment with webhooks is required if you sell subscriptions or accept payment methods with delayed success notification, because their subsequent state changes only after the Checkout Session completes." (same page).
You can still run fulfilment from the success page so the customer gets access straight away. Stripe recommends that as an extra, not as the only step: webhooks can be delayed, so triggering fulfilment from the landing page as well can get the customer access immediately. The webhook is what makes sure fulfilment still happens when the customer never reaches that page. And fulfilment should run only once per payment, even if the webhook and the success page both arrive. Stripe says: "Perform fulfillment only once per payment" (same page).
How to check your own app
You need to look at your server code, or ask your AI builder. A visitor's browser cannot show you this.
- Find the route that receives Stripe webhooks (often a path like
/webhookor/api/stripe-webhook). - Check that it verifies the
Stripe-Signatureheader with yourwhsec_secret before it unlocks a plan, marks an order paid, or changes a record. - Check that fulfilment is triggered by webhook events such as
checkout.session.completed(and, if you use delayed payment methods,checkout.session.async_payment_succeeded), not only by the success page loading. - Check that the same payment cannot be fulfilled twice.
- Keep the signing secret and the Stripe secret key (
sk_) on the server only, never in front-end code or in aVITE_/NEXT_PUBLIC_variable. See Is my Stripe secret key exposed?.
Do not test this by sending a made-up payment event to your live webhook. If the signature check is missing, that request could unlock a plan or mark an order as paid.
A copy-paste prompt for your AI builder
You can paste this into Lovable, Bolt, Cursor or a similar tool:
Review how my app fulfils Stripe payments.
1. Find the webhook endpoint that receives Stripe events.
2. Make sure it verifies the Stripe-Signature header with the endpoint signing secret (whsec_) using Stripe's official library, and that it uses the raw request body. If verification fails, reject the request and do not fulfil anything.
3. Fulfil paid plans or orders from verified webhook events (for example checkout.session.completed, and checkout.session.async_payment_succeeded if I use delayed payment methods). Do not fulfil only because the checkout success page loaded.
4. Make fulfilment safe to run more than once for the same Checkout Session, so a customer is not granted access twice.
5. Confirm the webhook signing secret and the Stripe secret key (sk_) are only on the server, never in client code or in VITE_ / NEXT_PUBLIC_ variables.
6. Show me every file you change, and tell me how to test this with the Stripe CLI on my machine, not on the live webhook.What the rooGBotVC scan checks
Paste your app's URL in the box at the top of this page. The scan looks at your live site the way a visitor would. It can flag a Stripe secret or restricted key if one has ended up in public JavaScript (findings such as Live secret key (sk_live_ / rk_live_) exposed in public code or Test secret key (sk_test_) exposed in public code). If it only finds a publishable key (pk_), it may show Stripe publishable key found (this is OK), and remind you to keep the secret key on the server.
To be clear about the limits:
- The scan does not check whether your webhook verifies signatures.
- It does not look at your Stripe Dashboard, your server code, or whether you fulfil from the success page.
- It will not send a test or fake event to your webhook. If the signature check were missing, that kind of probe could unlock a plan or mark an order as paid.
A clean scan means no secret key showed up in public code. It is not a payments audit.
The free summary shows what was found. The full report adds a plain-English explanation and a fix prompt you can paste into your AI builder.
Quick recap
- Verify the
Stripe-Signatureheader before you trust a webhook event. - Do not fulfil only from the checkout success page. Stripe says webhooks are required for fulfilment.
- Our scan can look for leaked secret keys in public code. It cannot test your webhooks.
Related reading
- Is my Stripe secret key exposed?: how to check that the secret key itself is not in public code.
- Exposed API keys: what to do when any secret key leaks.
Related guides
rooGBotVC is an automated, read-only check of what any visitor can see. It is not a full security audit and it does not test your payments or webhooks. Not affiliated with Stripe, Lovable, Bolt, Cursor, Replit or v0.