UI Events (iFrame postMessage)
When you embed the PayGlocal verification iFrame, the verification page communicates with your parent page using the browser’spostMessage API.
Listening for completion
During intermediate steps, the iFrame may also emit structured events:
Best practices
- Validate
event.origin— only accept messages fromhttps://uat.dashboard.payglocal.in(UAT) orhttps://dashboard.payglocal.in(Production). The iFrame loads the PayGlocal dashboard partner onboarding experience, not a separate verify subdomain. - Follow with GET /status — the postMessage signals UI completion; confirm
vkyc,digiLocker, andonboardingStatusserver-side before updating your merchant record. - See iFrame Integration for the full embed workflow.
Webhook Events
PayGlocal sends server-side webhook notifications to URLs configured in your PayGlocal Partner Dashboard. Webhooks fire for partner-assisted merchant onboardings only. Configure which events you receive viaPOST /gcc/v2/partner/{resellerMid}/webhook. List available event types with GET /gcc/v2/partner/webhook.
Supported events
System-created pendencies with status
UNDER_REVIEW are not sent to partners. Only partner-visible pendency updates trigger this webhook.Webhook Payload Structure
All onboarding webhook payloads are flat key-value maps (Map<String, String>).
Common fields (all events)
Event-specific fields
MERCHANT_STATUS_ACCEPTED
MERCHANT_TERMS_AND_CONDITIONS_ACKNOWLEDGED
MERCHANT_VKYC_COMPLETED
MERCHANT_DIGILOCKER_CKYC_COMPLETED
MERCHANT_PENDENCY_STATUS_UPDATED
Example payload — VKYC completed
Example payload — Merchant accepted
Recommended Integration Pattern
iFrame Integration
Embed the verification flow and handle postMessage events.
Get Onboarding Status
Confirm final merchant state server-side.
API Flow Overview
End-to-end onboarding sequence.

