Skip to main content

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.

Sandbox Environment

The Sandbox is a full replica of Production — same API, same response structure, same authentication — but no real transactions are processed. All test data is isolated and reset periodically.
SandboxProduction
API Base URLhttps://api.uat.payglocal.inhttps://api.prod.payglocal.in
Control Centerhttps://gcc.uat.payglocal.inhttps://gcc.prod.payglocal.in
Real transactionsNoYes
Key downloadSeparate sandbox keysSeparate production keys
Sandbox keys do not work in Production and vice versa. Always download keys from the correct environment.

Setting Up Sandbox Credentials

  1. Log in to https://gcc.uat.payglocal.in with your sandbox account credentials.
  2. Navigate to Key Management → API Keys and create a new key pair.
  3. Download your Private Key (PVT-KEY) — this is your only chance to download it.
  4. Download PayGlocal’s Public Certificate (PUBCERT) from Manage Keys.
  5. Configure your client code with the sandbox MID, key paths, and extracted KIDs.
For the full key setup process, see Key Management Overview.

Test PANs for Merchant Onboarding

Use these PAN formats to test different entity types in the Create Onboarding endpoint:
Entity TypePAN FormatpanType value
Individual / ProprietorshipStarts with P — e.g., ABCPE1234FP
CompanyStarts with C — e.g., ABCCE1234FC
TrustStarts with T — e.g., ABCTE1234FT
FirmStarts with F — e.g., ABCFE1234FF
Contact your PayGlocal integration representative for specific sandbox test PANs that pass validation.

Test Cards for Payment Integration

Use these card numbers to simulate different payment outcomes in Sandbox:
ScenarioCard NumberExpiryCVV
Successful payment4111111111111111Any future dateAny 3 digits
Successful payment (Mastercard)5132552222223470Any future dateAny 3 digits
Issuer decline4000000000000002Any future dateAny 3 digits
Insufficient funds4000000000009995Any future dateAny 3 digits
Card expiredAny valid numberPast dateAny 3 digits
3DS authentication required4000000000003220Any future dateAny 3 digits
These are standard Stripe/test card numbers for reference. Contact your PayGlocal integration team for the exact sandbox test cards validated for your MID.

Simulating Specific Scenarios

Test a Full Payment Flow

  1. Create a GPI request with a success test card.
  2. Redirect to the redirectUrl — PayGlocal’s Sandbox payment page opens.
  3. Complete the payment on the test page (no real card processing).
  4. PayGlocal redirects back to your merchantCallbackURL with x-gl-token.
  5. Validate the token and extract the SENT_FOR_CAPTURE status.
  6. Call Get Status to confirm.

Test a Declined Payment

  1. Use a decline test card in the GPI request.
  2. After redirect and callback, the token will carry a decline status.
  3. Validate your error handling and customer messaging.

Test 3DS Flow

  1. Use a 3DS test card.
  2. PayGlocal’s Sandbox page will simulate the 3DS challenge step.
  3. Complete the simulated challenge to proceed.

Test Standing Instructions

  1. Include standingInstruction.data in your GPI request.
  2. After the first successful payment, call Get Status to retrieve the maskedMandateId and siId.
  3. Use the Mandate ID in a subsequent SI Sale request.
  4. Verify the response shows SENT_FOR_CAPTURE.

Test Refunds

  1. Complete a successful payment (status: SENT_FOR_CAPTURE).
  2. Call the Refund endpoint with the GID.
  3. Verify the response shows SENT_FOR_REFUND.

Partner Onboarding Bank Verification

Use these values when testing Update Bank Details in UAT:
FieldUAT success valueAny other value
Bank Account Number1234567890Triggers CANCELLED_CHEQUE pendency in documentsToBeUploaded
IFSC CodeSBIN0000000Triggers CANCELLED_CHEQUE pendency in documentsToBeUploaded
When penny drop fails (in Production or by using non-test values in UAT), PayGlocal adds CANCELLED_CHEQUE to the pending documents list. Upload a cancelled cheque via Upload Documents with merchantDocType: CANCELLED_CHEQUE.

Sandbox Limitations

  • Auto Debit webhook delivery may be delayed in Sandbox.
  • Some alternative payment methods (iDeal, Sofort, etc.) may not be available in Sandbox.
  • VKYC and DigiLocker in the iFrame use test flows — no real identity verification occurs.
  • Penny drop bank account verification in UAT uses fixed test values — account 1234567890, IFSC SBIN0000000. See Partner Onboarding Bank Verification.

Go-Live Checklist

Before requesting Production access:
  • All API calls return expected responses in Sandbox
  • Callback URL validation working (token signature verification)
  • Get Status fallback implemented (in case callback fails)
  • Error handling for all decline and error status codes
  • Risk data included for international card transactions
  • merchantUniqueId is unique per transaction
  • Keys stored securely server-side (not in client-side code)
  • Submitted sandbox testing evidence to PayGlocal for go-live approval
See Merchant Requirements and Sandbox Testing for the full go-live process.