Skip to main content

Overview

Webhook notifications are sent to the webhook URL shared by the merchant. There are no additional integration steps required to implement and receive responses on webhook. To receive webhook responses, share a webhook URL with PayGlocal on which you want to be notified about the status of your transactions. Example webhook URL:
Once the webhook URL is configured on your MID based on your request, you will start receiving the response for all transactions as per the configuration.
To get your webhook URL configured, contact your PayGlocal account manager or write to merchant.support@payglocal.in.

How to Form Your Webhook URL

Your webhook URL is simply a publicly accessible POST endpoint on your own backend server. You build it yourself — PayGlocal will call it whenever a payment event occurs. A typical webhook URL follows this pattern:
Examples:
Rules for a valid webhook URL:
  • Must be HTTPS (HTTP is not accepted)
  • Must be publicly reachable — localhost or private IPs will not work
  • Must accept HTTP POST requests
  • Must return HTTP 200 to acknowledge receipt

Setting Up Your Webhook Endpoint

You need to create a POST endpoint on your backend that PayGlocal can call. The endpoint receives a JSON body and must respond with 200 OK. Here is what your endpoint needs to do:
Pseudo-code for any backend (Node, Python, Java, etc.):
Always return HTTP 200 before running any business logic. If your server takes too long to respond, PayGlocal may consider the delivery failed and retry the webhook.

Real-Time Event Notifications

Webhooks enable your application to receive instant notifications when events occur in PayGlocal, eliminating the need for constant polling and enabling real-time, event-driven workflows.

What is a Webhook?

An automated HTTP POST request sent from PayGlocal to your server the moment a payment event occurs — no polling needed.

Why Use Webhooks?

Instant notifications, no polling overhead, reduced server load, and event-driven workflows for faster applications.

When to Use

Payment status updates, order confirmations, transaction monitoring, and any scenario requiring immediate event-based action.

Webhook Flow


Sample Webhook Payload

When an event occurs, PayGlocal sends a POST request to your configured webhook URL. Here is an example of the payload your server receives:

Payload Field Reference


Payment Status Values