Why a failed webhook can hurt dispute and refund work
Dispute and refund events usually arrive by webhook. A provider posts an event when a case opens or a refund completes. If that failed webhook delivery is never fixed, your record keeps its old state. As a result, support may tell a customer that no refund exists.
Meanwhile, a new dispute can sit unseen while its response window runs. The deadline comes from the network rules in your provider's dispute notice. Therefore, a missed webhook event deserves a daily check, not a monthly one.
In practice, replaying failed webhooks early keeps the dispute clock in view. The chargeback operations guide shows how dispute and refund events feed the wider routine.
How a failed event shows up in the log view
DaletPay groups webhook deliveries by endpoint for each provider. Each delivery shows its status, its attempts, any error text and the time it was processed. A delivery that failed the check is marked failed, and it changed no record. Also, sandbox and live endpoints appear apart, so a test event is not mistaken for a live one.
Check the signature on a replay before a record can change
A replayed event is still an inbound request. Therefore, it must pass the same webhook signature check as the first delivery. Keep this rule in mind when replaying failed webhooks by hand or by script. DaletPay keeps the raw body until the check is finished, since the signature covers the exact bytes sent.
When the signature is valid, the delivery is marked verified and the matching record is updated. In contrast, when the signature is invalid, the delivery is marked failed and no record changes. In that case the endpoint returns a 400 response.
As a result, nothing else runs until a later webhook signature check passes. The webhook event verification page walks through both branches in full. Replaying failed webhooks never skips this step.
Why a parsed copy of the body can fail the check
Parsing can change spacing or field order. However, the provider signed the original bytes, so a rebuilt body will not match. As a result, the webhook signature check must run on the raw body every time.
Each provider uses its own signature scheme. For example, some use a keyed hash with a shared secret, while others send a public key signature. The HMAC method in RFC 2104 (opens in new tab) defines the keyed hash idea in plain technical terms.
Track the replay and retry state of every webhook delivery
Providers retry a delivery that gets no timely answer. The retry carries the same event identifier as the first attempt. DaletPay keeps a record of the processed events for each endpoint. As a result, a repeated identifier is reported as replayed and is not applied again.
This rule is the core of idempotent event handling for replaying failed webhooks. Specifically, a handler that sees the same event twice should change the record once. Without idempotent event handling, replaying failed webhooks would be risky.
In fact, the inbound rule mirrors the idempotency key on your own outbound actions. The idempotency keys article covers that outbound half.
How a retry differs from a replay in the log
A retry is the provider trying the same delivery again. By contrast, a replay is a copy of an event the platform has already processed. The first may still change the record, if no earlier copy passed. The second is shown as a replayed delivery and leaves the record as it was.
Together, these two signals form the webhook retry state you read each day. A webhook replay should never move a record backward. Similarly, they show why safe repeat handling counts most in an outage. Replaying failed webhooks after an outage sends many copies at once, and each one meets the same rule.
Late events need a separate rule of their own too
Providers can also send events out of order. For that reason, compare each event with the record's current state first. If the record already reflects a later event, keep the newer state. Otherwise an old refund update could overwrite a newer one.
A safe routine for replaying failed webhooks at your desk
Every gap in the log needs a clear path back. A missed webhook event is a gap to fix, not a guess to make. Five steps keep the record accurate while you recover a lost event. Use them each time you start replaying failed webhooks.
- Read the error and note the attempt count on the delivery.
- Confirm the event in the provider's own dashboard before you act on it.
- Fix the cause, because a changed signing secret often explains repeat failures.
- Ask for a resend through the provider's own option once the cause is fixed.
- Check the record and confirm that one verified delivery updated it.
Above all, during failed event recovery, do not edit a record by hand to match the expected outcome. Good failed event recovery lets the provider's data speak.
Instead, let the verified event change it through a safe event replay. The provider's resend option then delivers it again through the same checks.
Write a short note after you fix a lost event
It names the cause, the fix, the owner and date. Next, link the note to the transaction record that the event changed. That note helps the next person who meets the same failure. Moreover, it gives a later review a clear trail.
What to test in a sandbox before you go live
Run each test once for every provider. Do this well before replaying failed webhooks in live use. After all, each provider signs its events in its own way, so one passing test proves little.
Compare the Adyen HMAC signature guide (opens in new tab) with the PayPal webhooks guide (opens in new tab). The open Standard Webhooks (opens in new tab) specification describes a neutral pattern. DaletPay works with 146 payment services and checks each one's signing scheme.
Next, keep the results with the provider's capability card, and note which dispute and refund events each test covered. Similarly, repeat the tests after any change to an endpoint or secret. The hands-on webhook lab runs the same event replay routine with a trainer. It also covers the webhook signature check and idempotent event handling for dispute and refund events.