Testing Webhooks

To test your EdfaPay webhook integration, use Webhook.site, a free tool that provides a unique URL to receive and inspect HTTP POST requests. This helps verify EdfaPay webhook payloads before production.

How to Use Webhook.site for Testing

  1. Go to https://webhook.site. A unique URL will be generated (e.g., https://webhook.site/1234-abcd-5678-efgh).
  2. Copy this URL and paste it into your EdfaPay Dashboard settings: Settings > Webhook > Webhook URL.
  3. Perform a test transaction in your sandbox or production environment.
  4. Monitor the Webhook.site page to see headers, body/payload, request method (POST), and timestamps.

What to Check on Webhook.site:

ConfirmWhy It’s Important
Payload matches your docsValidate data structure.
Correct action / statusCheck transaction flow.
Correct hash fieldValidate security logic.
Response HTTP 200Confirm webhook is successful.
📘

Important Reminder

Webhook.site is for testing only. In production, your webhook endpoint should be on your secure server, properly handling authentication and hash validation.