Back to blog
Adal Cloud journal

How to debug third-party webhooks

Inspect a test webhook and trace it from the provider’s delivery log to your application.

Published on
How to debug third-party webhooks

A payment succeeds in your Stripe sandbox, but the order still shows as unpaid. Open the store’s webhook endpoint in Stripe Workbench and look for the payment_intent.succeeded event for that payment. Which URL did Stripe send it to? What HTTP status did it get back? If the endpoint returned 2xx, the next place to look is your application log.

Sometimes the question is more basic. What does Stripe actually send, and where in the payload is the payment ID your handler needs? You can find out by adding a second endpoint in the sandbox and inspecting a fresh request in your browser. Each endpoint has its own delivery history, and the store keeps receiving events at its existing URL.

Inspect a Stripe payment event

  1. Open Adal Go, select Get URL, and copy the temporary HTTPS address. Keep the tab open and connected while you run the test.

  2. In your Stripe sandbox, open Workbench → Webhooks and create an event destination for your account. Choose Snapshot, select payment_intent.succeeded, and choose Webhook endpoint. Paste the Adal Go address into Endpoint URL and append /stripe so you can recognize the path in the request.

  3. In the Stripe CLI or Stripe Shell, run stripe trigger payment_intent.succeeded against the same sandbox. Stripe creates a test payment and sends the event to subscribed endpoints. Open the request in Adal Go. Stripe webhook setup and testing

Here’s an abbreviated request with example IDs and the signature omitted.

POST /stripe HTTP/1.1 Content-Type: application/json Stripe-Signature: [redacted] { "id": "evt_demo_01", "type": "payment_intent.succeeded", "livemode": false, "data": { "object": { "id": "pi_demo_01", "object": "payment_intent", "status": "succeeded" } } }

The two IDs answer different questions. The top-level id identifies the event. Open Event deliveries for the temporary endpoint in Stripe and look up evt_demo_01 (using the actual ID from your request). You can see when Stripe attempted delivery and which HTTP status it received. The nested data.object.id identifies the PaymentIntent. That’s the value to match against a payment record in your store. The type field tells your handler what happened to the object, and livemode: false marks this as a test event. Stripe event object · Webhook delivery history

The CLI created a new payment for this experiment. To investigate the original unpaid order, return to the store’s endpoint in Workbench and use the event ID for the original payment.

If your handler reports a signature error, pass the Stripe SDK the raw request body, the Stripe-Signature header, and the signing secret for the endpoint that received the request. Formatting JSON makes it easier to read in a browser, but parsing and re-encoding it can change the bytes the SDK needs to verify. Stripe signature verification

Six quick webhook checks

Stripe

Place an order through your own sandbox checkout. Find the payment_intent.succeeded event for the PaymentIntent that checkout created. If your store writes the order ID to the PaymentIntent’s metadata.order_id, look for that value at data.object.metadata.order_id in the event. If it’s missing, check the code that attaches the order ID to the PaymentIntent. Stripe PaymentIntent object

GitHub

In a test repository, open Settings → Webhooks → Add webhook. Enter your test address under Payload URL, choose application/json, and subscribe to Issues. GitHub sends a ping when you save. Now create an issue. Look for X-GitHub-Event: issues in the headers and "action": "opened" in the body. Use X-GitHub-Delivery to find the matching entry under Recent Deliveries. Create a GitHub webhook · Delivery headers

Telegram

Call setWebhook for a test bot with your HTTPS address in url and ["message"] in allowed_updates. Send the bot a text message in a private chat. The incoming Update contains an update_id and the text you sent in message.text. If you set a secret_token, look for it in the X-Telegram-Bot-Api-Secret-Token header. For an existing bot, getWebhookInfo shows the current URL and any recent delivery error. Calling setWebhook with a new URL redirects the bot’s updates there. Telegram Bot API

Shopify

Run shopify app webhook trigger in the Shopify CLI. Choose the orders/create topic and your test HTTPS address. Find X-Shopify-Topic in the headers and the order ID in the body. The CLI sends a fixed sample payload. To exercise your app’s subscription end to end, configure orders/create for a test store and place an order there. Shopify CLI webhook trigger · Create a webhook subscription

Discord

Open Webhooks in your test app’s settings. Discord needs a Webhook Events URL where your handler can answer a verification request. If the handler runs on your laptop, give it a public HTTPS address through an Adal Cloud HTTP tunnel.

When you register the URL, Discord sends a POST with type set to 0. Use the app’s public key to verify X-Signature-Ed25519 against the timestamp from X-Signature-Timestamp followed by the raw request body. Return 401 for an invalid signature and an empty 204 for a valid PING. Once Discord accepts the URL, subscribe to APPLICATION_AUTHORIZED and authorize the test app. Look for that event name in event.type and acknowledge the event with an empty 204 within three seconds. Discord webhook events · HTTP tunnel quickstart

Notion

Subscribe to page.content_updated in your test integration’s settings. Use a stable HTTPS address for your handler. Changing a verified URL requires a new subscription. Copy the verification_token from Notion’s first POST into the Verify form. Keep the token secret because your handler also uses it to verify X-Notion-Signature.

Edit some text on a page the integration can access. Check type to see what changed and entity.id to identify the page. If the handler needs the current page content, fetch it through the Notion API. Set up Notion webhooks · Event types and delivery

Where to look when something goes wrong

  • No request showed up. Check the exact URL, the subscription status, and the event type. If the provider has a delivery log, open the relevant attempt and check the HTTP status or connection error. For Adal Go, check that the tab is still connected. Reloading it gives you a new URL.

  • The request arrived, but the fields look wrong. Check the Content-Type header and the payload format you selected. GitHub can send JSON directly in the request body or inside a form field named payload with application/x-www-form-urlencoded. In Stripe, the fields available depend on whether the destination uses snapshot or thin events.

  • Your application rejected the request. Match the provider’s delivery attempt to an entry in your application log. Check the request path, which handler ran, and whether signature verification succeeded. Compare the status your application logged with the one the provider received.

A temporary Adal Go URL works well when you want to inspect a test event as it arrives. If you need a stable address, saved requests, or delivery to your handler, create a test Server in Adal Cloud. Open Inbound → Requests to inspect a saved request and its delivery attempts. For a provider that needs your handler’s response on the same HTTP connection, use an HTTP tunnel. Inbound requests and delivery history · HTTP tunnel quickstart

Back at the store, Stripe shows a 2xx, and the order still shows as unpaid. Look up the original evt_… in the handler log. Did the code for payment_intent.succeeded run? Which order did it find for pi_…? Did the status update commit? Those checks take you from the response Stripe recorded to the order the customer sees.

More from the Adal Cloud blog

Explore product updates, webhook guides, and engineering notes.

Back to blog