Pass the menu and read the page

SignupFolio

Stripe webhook signing: 3 settings to check

Stripe webhook timing checks depend on secret expiry, the libraries' timestamp tolerance, and whether a zero tolerance disables the recency check.

Key takeaways

  • Ask when the old secret expires and when the server receives the new code.
  • Confirm the production tolerance and how the server clock is kept in sync.
  • Test accepted and refused events in staging.
  • Record whether each test changes the account as expected.

This post explains each setting in plain words, compares them side by side, and ends with questions you can bring to your engineering lead. You do not need to write code to follow it. You do need to understand why a refused event matters. If the server rejects a signup or trial event, the customer may believe everything worked while the account stays in the wrong state. Your reports can then undercount conversions, and the team may chase the wrong problem.

The advice here is for growth leads, not for the people who write the code. You will not find instructions for editing a server. Instead, you will learn what each setting means for the numbers you report, what questions to ask, and what a good answer sounds like. If your engineering team already knows these details, the questions will help you check that the answers match what is running in production.

Why signup and trial events are easy to lose

A webhook is a message Stripe sends to a URL your team controls. When a customer signs up for a plan or starts a trial, Stripe can send an event that describes the change. Your app reads that event and updates the account. It might unlock features, start a countdown on a trial, or write a row to the analytics table that your dashboards read from.

Picture a simple case. A visitor completes checkout for a trial, and Stripe sends the event. Your server receives it, runs the check, and passes it through, so the account moves into trial and the funnel report counts one more trial start. Now change one detail. The server refuses the event because its timestamp falls outside the allowed window. Nothing appears on the signup page, the customer may never notice, and the funnel report is one trial short. Repeat that across a bad day of signups and the report starts to look wrong for reasons nobody can see.

Before your app trusts that message, it must pass a check. If the check fails, the event is refused and nothing downstream happens. No error appears on the signup page, so the problem can stay hidden until someone reads the server logs.

That is why settings that sound like plumbing matter to growth. They decide which events count, and therefore which customers your team sees as signed up or in trial. A tolerance value that is too strict loses real customers. A value that is too loose lets through events that should have been refused. Both show up as a wrong number, not as an error on a page.

What Stripe sends and how your server checks it

Stripe uses HTTPS to send webhook events to your app as a JSON payload that includes event information. In plain terms, each message is structured data that your code can parse, and it travels over an encrypted connection. Your growth team does not need to know the format, but it helps to know the message is data, not a page view or a click.

Each message also carries details that your server uses for the check. Stripe's guide describes a verification code, which is a secret your server holds, and a timestamp that your server compares with its own clock. The official guide on receiving Stripe events explains how these pieces fit together, and it is the right reference when your engineering lead wants to confirm a detail.

Think of the verification code as a password that only Stripe and your server share, and the timestamp as a question about whether the message is recent. A single refused event is not a crisis. A pattern of refusals, especially right after a change, is a reason to look closer.

The guide also uses a local example to show how a handler gets set up. One command in it assumes you have a localhost website on port 4242 with a POST /webhook endpoint, which you can configure when you create a handler. That local setup is a useful model for staging, the test copy of your product. If staging does not receive events the same way production does, your tests can pass while the live signup flow fails.

For related checks, read our guide to verifying webhook senders.

Compare the three settings side by side

The table below sets the three settings next to each other. It shows the value the guide documents, what the setting controls, what a change does to signup and trial events, and the question to ask engineering. Read across a row to see how one setting can cut off events, and read down a column to compare the three.

SettingValue in the guideWhat it controlsEffect on signup and trial eventsQuestion for engineering
Secret expiry delayup to 24 hoursOld secret expiry after a changeIllustrative: events are refused during a gap between expiry and the server updateDid the server update happen before expiry?
Timestamp tolerance, libraries' default5 minutesTimestamp comparison with the current timeIllustrative: a clock mismatch causes a genuine event to be refusedIs the server clock kept in sync?
Tolerance setting0Recency checkingIllustrative: an old event passes the time checkIs this production value intentional?

The first two settings are timing rules. The third removes a check altogether, so it deserves the most scrutiny.

How the 24-hour window works

Stripe's guide gives a team a choice when a secret changes. It says you can "immediately expire the current secret or delay its expiration for up to 24 hours to allow yourself time to update the verification code on your server." The choice matters because your server and Stripe need to agree on which code is valid at each moment.

Illustrative example: a secret change

Suppose the team changes the verification code and needs 10 minutes to update the server. If they expire the old code immediately, the server stops accepting it at once, and any event that arrives before the new code is live can be refused. Trial starts and plan upgrades in that gap are lost from your product's point of view, even though Stripe sent them. If instead they delay the old code's expiry, the old code keeps working while the new one goes live, so the gap closes. The delay is a ceiling, not a target, so the team can choose a shorter delay when the release is quick.

Record the change times

Before any change, ask the team to write down the time the change starts, the time the new code goes live, and the time the old code stops working. Three timestamps are enough to tell whether signup and trial events had a gap. Without them, the team will argue from memory, and growth will be stuck guessing.

For a growth lead, the useful question is simple. Did the team choose the delay on purpose, and did the new code reach production before the old one expired? If the answer is unclear, ask for the date and time of the change and the deploy record that shows when the new code went live. Compare those times with the days your signup or trial counts dropped, if they did. A close match is a strong reason to investigate.

Clocks and the 5-minute tolerance

The guide states the default plainly: "Our libraries have a default tolerance of 5 minutes between the timestamp and the current time." In practice, the server reads the timestamp on each event, compares it with its own clock, and accepts the event only if the gap falls inside the window.

A concrete case helps. Imagine an event whose timestamp is six minutes older than the server's clock when the server checks it. Now imagine the server's clock runs a few minutes fast. Events that were fresh can look old, and the server refuses them even though Stripe sent them on time. Neither case produces an error that a customer sees, so the effect is a quiet gap in your signup and trial data.

On a healthy system the default rarely causes trouble. Trouble starts when the server clock drifts, or when the server processes messages late. Either case can refuse a genuine signup or trial event. Ask engineering how the clock is kept in sync and whether anyone monitors it.

Also ask whether your team uses Stripe's libraries or wrote its own check. A custom check may use a different window. Growth will not know which one is in place unless engineering says so.

The 0 value and why it is a red flag

The guide is direct about this setting: "Using a tolerance value of 0 disables the recency check entirely."

That sounds harmless until you think about what the check is for. The recency check is one of the ways a server avoids treating an old message as if it were new.

Teams sometimes set the tolerance to 0 while they debug a webhook problem. The change can make errors disappear for a while, which is exactly why it is easy to forget. If the value stays at 0 after the debugging ends, the server may accept events it should have refused, and nobody sees a warning.

Staging is where this often starts. A tester sets the value to 0 to get a test event through, and the same configuration is later copied to production. Ask engineering to show the current production value and the date it last changed. A 0 that nobody can explain is a finding, even if no one has noticed a problem yet.

Testing signup and trial events before launch

Testing gives your team evidence instead of hope. Before a new signup or trial flow goes live, ask engineering to send test events through staging and confirm each one is accepted. The local setup described in the guide gives the test environment a clear shape: a place that receives events, a route for them, and a handler that checks them.

A useful test covers at least three paths: a new signup, a trial start, and a plan change during a trial. For each path, the team should record whether the event was accepted, how long after the action it arrived, and whether the account changed as expected. Those three answers tell you more than a green checkmark does.

Then test the edge cases the settings control. Send an event with an old timestamp to confirm it is refused under the libraries' default tolerance. Then confirm that a change to the verification code works without a gap. Testing the refusal matters as much as testing the acceptance, because a check that accepts everything passes every happy-path test.

Keep the test set small and repeat it after every change to the settings. A test that ran last quarter tells you about last quarter's configuration, not today's.

Ask for the results in writing. A short report with the test date, the number of events sent, the number accepted, and the number refused gives both teams a shared record.

Use our signup release review to connect these tests with the rest of the signup flow.

Signs that signup or trial events are being lost

Some symptoms appear in growth data before anyone opens a server log. A count of trial starts falls for no clear reason while traffic and ad spend stay steady. Customers write to support saying they paid or signed up but cannot reach the product. The number of accounts in trial does not match the number of completed checkouts. None of these proves a webhook problem by itself, but each one is worth a question.

When you see a symptom, sort the cause into one of three buckets. The event never arrived, the event arrived and was refused, or the event arrived, was accepted, and was written to the wrong place. Engineering can usually check the first two quickly if refused events are logged. The third bucket is a product bug, and it needs a different fix.

Ask whether refused events are logged and whether anyone reviews them. A log that nobody reads does little to protect your numbers.

Set up a simple shared log for growth and engineering. Each row needs a date, the symptom you saw, the number of events you expected, and the number that arrived. Over a few weeks, the log shows whether problems repeat, and whether they line up with changes in the settings.

Also compare timing. If the drop started on the same day as a secret change, a clock problem, or a settings edit, that match is a strong clue. Check the change history before you blame a campaign.

Your next step today

Ask engineering for a short note with the production setting values, the date of the last change, and the count of refused events over the past week. If an answer is missing, treat that as the first item to fix.

What to ask engineering to confirm

Which signup and trial events should we test?

Test a new signup, a trial start, and a plan change during a trial. For each path, check acceptance, arrival timing and the resulting account state.

What should we record when the verification code changes?

Record when the change starts, when the new code reaches production and when the old code expires. Compare those times with any drop in signup or trial counts.

How do we find the tolerance used in production?

Ask engineering to show the current production value and whether it matches staging. Also confirm whether the team uses Stripe's libraries or a custom check.

What should we ask about refused events?

Ask whether refused events are logged and reviewed. Separate events that never arrived from those that arrived and were refused, then check accepted events for the expected account change.

Related guides: Webhook reply rules: 4 vendors on codes and timing · Configure 6 trial settings for a SaaS billing stack · Demo booking settings: 6 checks before launch.

Sources and check date

Related posts

More posts