Documentation Index
Fetch the complete documentation index at: https://docs.payglocal.in/llms.txt
Use this file to discover all available pages before exploring further.
Sample Client Code
PayGlocal provides sample client code to handle the cryptographic complexity of signing and encrypting requests. Contact your PayGlocal representative or reach out to support@payglocal.in to request access to the GitHub repository or sample code package. The client code is available in multiple languages. Once received, follow the configuration steps below.Configuration Properties
The sample code uses a properties file with the following attributes:| Property | Description | Example |
|---|---|---|
merchantId | Your PayGlocal-assigned Merchant ID (MID) | gldemomerchant |
privateKeyPath | File path to your PVT-KEY .pem file | /etc/payglocal/pvt-key.pem |
publicCertPath | File path to the PUBCERT .cert file | /etc/payglocal/glocal.cert |
privateKeyKid | Key ID extracted from your PVT-KEY filename | 884hiurh-8e0b-4907-38nn-fuerikejr89 |
publicCertKid | Key ID extracted from the PUBCERT filename | 834hinrh-8r0n-4657-34nn-fnjhjre33uur |
payloadEncryption | Whether to encrypt the request body (true recommended) | true |
Step-by-Step Configuration
Set Your Merchant ID
Set
merchantId to the PayGlocal-provided Merchant ID for your environment (UAT or Production).Set Key File Paths
Point
privateKeyPath and publicCertPath to the locations where you have stored the downloaded PVT-KEY and PUBCERT files.Extract and Set KIDs
PVT-KEY KID: Take the portion of your PVT-KEY filename before the underscore.PUBCERT KID: Take the portion of the PUBCERT filename before
_glocal.cert.What the Client Code Does
WhenpayloadEncryption = true, the client code performs the following steps for each API call:
API Endpoints
REST API Base URLs
| Environment | Base URL |
|---|---|
| UAT | https://api.uat.payglocal.in |
| Production | https://api.prod.payglocal.in |
PayGlocal Control Center (GCC) URLs
| Environment | URL |
|---|---|
| UAT | https://gcc.uat.payglocal.in |
| Production | https://gcc.prod.payglocal.in |
Portfolio Merchant (Parent-Child MID)
For clients with a parent-child MID setup, you can use the parent’s keys to sign transactions for child MIDs. Add the following header to all child MID transactions:merchantId field of the request payload.
Next Steps
With your client code configured, proceed to integrate the payment services:GPI Service
Initiate payments through the PayGlocal Payment Initiation service.
Integration Flow
Understand the end-to-end payment flow before writing your first request.

