DaletGuard supports civilians affected by armed conflict through Families Beyond War. All sides, no political affiliation. About our humanitarian work

Webhook Event Verification in One View

Webhook event verification is how DaletPay makes sure each provider event is genuine before it can change a single record. Providers use webhook events to report what happened later, such as a capture, a refund, a dispute or a payout. Those events often arrive long after the request has ended, so nobody on your team is watching when they land. DaletPay checks the signature against the raw body of each one, and only a passing event updates the matching record. This page explains that path, the states a delivery can show and the limits that your team should plan around.

Webhook event verification separates a useful notice from a harmful one. For example, a forged event can change a status, release a hold or close a case. The checks below are built to stop that. However, they do not replace the provider's own security, and each adapter must be built correctly.

Illustration of shield, folder, scale for webhook event verification
Key takeaway

DaletPay checks each inbound provider event before any record changes. An invalid signature is rejected with a 400 response. Operators see every delivery with its attempts and errors.

Why do unverified events lead to such costly errors later?

A webhook is a plain request from the open internet. Also, anyone who knows the endpoint can send one. As a result, a system that trusts every request can be fooled into showing a refund that never happened.

Even honest providers cause trouble. For instance, events arrive late, out of order or twice. Then a naive handler applies each one as if it were the first, using the raw body as it came. Without webhook event verification, both problems reach your records.

The damage shows up in the books and in the customer's account. Typically, a status changes too early, a payout looks settled before it is, or a dispute closes without evidence. Consequently, the team spends days finding the cause.

  • Forged events from a stranger. A request that looks like a provider event can change a record if nothing checks it.
  • Events that arrive out of order. A late event can overwrite a newer status with an older one.
  • Events that arrive a second time. A provider retry can apply the same change twice unless the handler spots a replayed event.
A diagram of 3 connected steps, each with a small drawing: Replayed event, Delivery status, Raw body.

How does DaletPay check each inbound event before it acts?

Each endpoint receives the raw body of the request and its headers.

DaletPay keeps that raw body until the signature check is done. Indeed, a signature covers the exact bytes the provider sent, so a rebuilt raw body would fail. Next, the platform finds the provider adapter for that endpoint. Then it asks the adapter to verify the event.

When the signature is valid, the delivery status is marked as verified. The matching record is then updated.

In contrast, an invalid signature marks the delivery as failed, returns a 400 and changes no record. Afterwards, the raw body and the parsed object are released from memory. That is the full path of webhook event verification.

Inbound events change records only after signature verification
An event with an invalid signature is rejected and changes no record.

The diagram shows both branches of webhook event verification. A valid event is recorded and processed, while an invalid event stops at the check. The payment execution controls page explains how the results of your own actions reach the same records.

DaletPay webhook deliveries screen
For example, a repeated refund event is marked duplicate, so the action runs once.

What do operators see for each delivery in the view?

The Webhooks page groups events by endpoint. First, an operator sees the endpoints, then the deliveries for each one. Next, each delivery status line shows the attempts, any error text and the time it was processed. Also, a short tab opens the delivery detail with the payload, which helps when an event needs a closer look.

What three points does the view show you each day?

The view answers three plain questions. Is the provider sending events to this endpoint? Are the events passing webhook event verification? Did each event reach the record it was meant to change?

The transaction inspection page shows how a delivery links to the transaction it updated. Also, endpoints show their provider environment. Sandbox and live endpoints are listed apart, so a test event is not mistaken for a live one.

How does the endpoint deal with a repeat or a replay?

When providers get no quick answer, they retry with a second event that has the same identifier. Webhook event verification treats it as a replayed event. The endpoint keeps a record of processed events. So a repeated identifier is reported as a replayed event and not applied again.

In addition, that rule works together with idempotency on the outbound side. Specifically, a payment action carries its own key, and a webhook confirms the outcome of that key. The idempotency keys guide explains that outbound half in plain terms.

However, the repository showed the delivery status and the attempts. It did not show a way to resend one delivery by hand. So, plan your process around that fact. Check the current behaviour with the product owner before you rely on a manual replay step.

Where does the check stop, and why does it stop there?

Importantly, the check is only as good as the adapter behind it. The platform can verify a scheme the adapter knows. Nevertheless, it cannot verify a scheme the adapter does not implement. The capability card shows which scheme a provider declares, so the limit is visible before go-live.

Similarly, some events depend on the provider sending them at all. If a provider never sends a confirmation, the record stays unconfirmed. In that case, the reconciliation view should show the gap. The security controls page lists the other checks that limit the harm from a bad event.

Test each provider's events in a sandbox, and record the result before you turn on live events for that provider. Webhook event verification should be proven per provider. Do not just assume it works for a new one.

Illustration for Webhook Event Verification in One View

A common case: what if one refund event comes in twice?

In one common case, a provider sends a refund event, and the first delivery times out before the platform responds. The provider retries the same event a minute later, and that retry is a replayed event. This is a common case for teams.

First, the first delivery passes the signature check and begins processing. Then the retry arrives with the same identifier. The endpoint spots it and reports a replayed event, so the record is not changed a second time. Meanwhile, the operator sees both deliveries in the view, one processed and one marked as replayed.

Finally, the team confirms the refund in the transaction record and in the provider's dashboard. Both show the same refund, so no follow-up is needed. The replayed event left no mark. Webhook event verification did its job without any manual step.

What do verified events give your team in its daily work?

Verified events make the record worth trusting. For example, a support agent who reads a refund status knows the event came from the provider. Likewise, a finance analyst who reconciles a day knows that no forged event added a payment. Webhook event verification costs little, and it removes a whole class of errors from the close.

Moreover, webhook event verification makes incidents easier to study. A failed delivery carries its error text and its attempts. Thus, a reviewer can see that an endpoint got a strange request and that the request changed nothing. That evidence supports the security review and the talk with the provider.

How should you run the endpoint from one day to the next?

Watch the Webhooks page each morning during the first month. Specifically, look for a rise in failed deliveries, repeated attempts or the same error text again and again. Notably, a cluster of failures often follows a changed secret at the provider. So check the secret first, then read the delivery status again.

In practice, keep the endpoint settings under change control. Each change should name the provider, the environment, the reason and the approver. Otherwise, a secret that is rotated without a record makes the next failure hard to explain. The payment operations guide places this routine inside the wider model of webhook event verification.

DaletPay payout drawer screen
For example, the payout drawer screen of DaletPay.

How should you design the response when a signature fails?

Decide in advance what an endpoint returns when a signature check fails. A clear 400 response tells the provider that the message was refused. In addition, it keeps the provider from retrying the same bad message forever. Write the response into the endpoint settings, so each provider's behaviour is on record.

Next, test the response in the sandbox with a wrong signature. Then check the status code and the delivery status. The sale should not change. The record guide shows the record to check after webhook event verification rejects a message.

Why should you look at all failed deliveries each week?

Review each failed delivery status once a week, even when the flow looks healthy. Group the failures by provider and by error text for webhook event verification. Indeed, a new error text for one provider usually means a changed scheme, secret or event type. Raise it with the provider the same week.

Finally, close each review with a short note. Record the number of failures, the causes found and the actions taken. Overall, a quiet note each week beats a long report each quarter, and it keeps webhook event verification healthy.

How can you protect the endpoint from abuse and from noise?

Limit the endpoint to the provider's published addresses, where the provider publishes them. Also, rate-limit repeated invalid requests from one source. Log the source address with each rejection, so a pattern becomes visible. Together, these steps cut noise and make a real attack easier to see.

Likewise, review the endpoint settings after each provider release for webhook event verification. A new event type may need its own rule. An unused event type may be safe to turn off, once the provider agrees.

Additionally, keep a short list of the event types each provider sends to the endpoint. The list states which events change a record and which only inform the team. Then a reviewer who sees an odd event type can judge its effect quickly.

Test the event path before you trust it with live money.

Send test events from each provider sandbox, and confirm that a valid event updates the matching record. Next, send a wrong signature on purpose, and confirm that the delivery fails without changing the record. The webhook basics guide lists the steps in a useful order.

In the end, webhook event verification is simple to test. Webhook event verification earns trust only once both paths are tested.

Common questions teams ask about webhooks and how it works

What happens when a webhook signature is invalid?

The delivery is marked failed with an invalid signature error, and the endpoint returns a 400 response. The event does not update any record, and the raw body and headers are cleared from memory. An operator can see the failed delivery in the event view and check the sender or the endpoint settings.

Does a repeated event change a record twice?

No. The inbound endpoint recognises a repeated event by its identifier, reports it as replayed and does not apply the change again. This protects the record when a provider resends an event after a timeout.

Where can operators see webhook activity?

The Webhooks page lists the registered endpoints and their deliveries. Each delivery shows its status, its attempts, its error text and the time it was processed. Operators use this view to confirm that a provider sends events and that the platform accepts them.

Does DaletPay verify every provider the same way?

No. Each provider adapter implements its own verification, because providers use different schemes such as shared secrets or public keys, and the capability card shows the declared scheme. Test each provider's events in a sandbox before you trust it with live events.

Can an operator replay a delivery from the workspace?

The workspace shows delivery status, attempts and errors, but the repository did not show a replay control for single deliveries. A repeated provider delivery is recognised by the endpoint. If your process needs manual replay, check the current capability with the product team first.

See how DaletPay fits the providers your team uses today

Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.