- VKYC — Video-based KYC using the merchant’s live camera
- DigiLocker — Government document verification via DigiLocker
- T&C Acknowledgement — Merchant accepts PayGlocal terms and conditions
Step 1: Domain Whitelisting (Action Required)
PayGlocal uses a strict Content Security Policy (CSP) withframe-ancestors directives to prevent Clickjacking attacks. Browsers will display a frame-ancestors violation console error and block the iFrame until your domain is authorized.
To request whitelisting, contact your assigned PayGlocal Account Manager with:
| Field | Value |
|---|---|
| Partner Name | Your legal entity name |
| Environment | Sandbox, Production, or both |
| Domain URLs | Exact URLs where the iFrame will be hosted (e.g., https://onboarding.yourcompany.com) |
Step 2: Integration Workflow
Initialize — Generate the verification session URL
Before rendering the iFrame, call the Get Verification Redirect API from your backend to generate a session URL for the merchant.Response:Save the
data.redirectLink value — this is the src for your iFrame. The URL includes a single-use session token valid for 24 hours.The
callBackUrl is stored on the merchant record and used as the redirect target after verification completes. It must be a full HTTPS URL on your whitelisted domain.Embed — Load the redirectLink in an iFrame
Inject the
redirectLink as the src of an iFrame on your page. The allow attributes below are mandatory — without them, the browser will block camera and microphone access during VKYC.Handle Callback — Listen for completion
PayGlocal signals completion in two ways:Option A — postMessage (recommended for real-time UX)Listen for During intermediate steps (e.g. DigiLocker redirect), the iFrame may also post structured events such as
message events from the iFrame. When verification completes, PayGlocal posts PARTNER_MERCHANT_VERIFICATION_COMPLETE.PARTNER_MERCHANT_VERIFICATION_REDIRECT. See Partner Onboarding Events for the full event reference.Option B — callBackUrl redirectAfter the merchant finishes, PayGlocal redirects the iFrame to the callBackUrl you provided. Your page at that URL can render a completion screen.Technical Requirements and Best Practices
| Requirement | Detail |
|---|---|
| HTTPS | Parent page must use HTTPS. HTTP origins will block camera/microphone access. |
| Minimum height | Set the iFrame container to at least 700px height to prevent internal scrollbars during the VKYC video call. |
| Permissions Policy header | Ensure your server does not send a Permissions-Policy: camera=() or similar header that conflicts with iFrame permissions. |
| Origin validation | Validate event.origin against https://uat.dashboard.payglocal.in (UAT) or https://dashboard.payglocal.in (Production). |
| Server-side confirmation | After callback, always call GET /status server-to-server to confirm the final merchant state. |
| Token expiry | Session tokens in redirectLink expire after 24 hours. Generate a fresh link if the merchant does not complete verification in time. |
| Responsive design | The verification suite is mobile-responsive. Your container should be flexible-width with a fixed minimum height. |

