Documentation Index
Fetch the complete documentation index at: https://payglocal.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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:To get your webhook URL configured, contact your PayGlocal account manager or write to [email protected].
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:- 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 with200 OK.
Here is what your endpoint needs to do:
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
| Field | Description |
|---|---|
country | Country of the card used for payment |
amount | Transaction amount |
gid | PayGlocal’s unique transaction identifier |
merchantId | Your Merchant ID |
merchantTxnId | Your unique transaction reference |
paymentMethod | Payment method used (e.g. CARD) |
currency | Currency of the transaction |
cardBrand | Card network used (e.g. VISA, MASTERCARD) |
status | Final transaction status |
Payment Status Values
| Status | Meaning |
|---|---|
SENT_FOR_CAPTURE | Payment successful — funds captured |
AUTHORIZED | Payment authorized, awaiting capture |
ISSUER_DECLINE | Card declined by the issuing bank |
CUSTOMER_CANCELLED | Customer cancelled the payment |
ABANDONED | Customer left without completing payment |
GENERAL_DECLINE | Declined due to risk or fraud check |

