Overview
PayGlocal’s payment flow involves both server-side and browser-side components. Your server communicates with PayGlocal’s API to create the transaction, and your customer’s browser is redirected to PayGlocal’s hosted payment page to complete authentication and authorization.Flow Diagram
Step-by-Step
1
Customer Initiates Payment
The customer initiates a payment on your checkout page. Your frontend sends the payment details to your server.
2
Your Server Calls GPI
Your server sends a GPI (Payment Initiation) API request to PayGlocal. This request includes transaction details, card data (Seamless Flow / PayDirect) or minimal data (Checkout Flow / PayCollect), and optional risk/shipping/billing data.See GPI Service for full request details.
3
PayGlocal Returns a Redirect URL and GID
PayGlocal responds with:
redirectUrl— the URL to redirect your customer’s browser togid— a unique PayGlocal transaction identifier (always starts withgl-)
4
Provide the URL to the Browser
Your server returns the
redirectUrl to your frontend browser application.5
Browser Redirects to PayGlocal (GET)
Your browser application redirects the customer to the
redirectUrl using an HTTP GET method.On the PayGlocal-hosted page, the customer completes their payment (authentication, card entry, 3DS, etc.).6
PayGlocal Redirects Back to Your Callback URL (POST)
After the payment completes (success or failure), PayGlocal redirects the customer’s browser back to the
merchantCallbackURL you specified in the GPI request using an HTTP POST.PayGlocal sends a cryptographic token in the POST parameter: x-gl-token.Your server must:- Validate the
x-gl-tokensignature using PayGlocal’s PUBCERT - Extract the payment status from the validated token payload
- Render the appropriate payment success/failure page to the customer
PayGlocal Transaction Identifiers
GID (PayGlocal ID)
Each GPI service call creates a unique GID — your primary handle for tracking and reconciling transactions.- Always starts with
gl- - Example:
gl-066b5ac7-c674-4b62-945d-88ac9644fa29 - Use in follow-on API requests (Get Status, Refund)
Merchant Unique ID
You can send your own transaction reference (merchantUniqueId) in the GPI request. This identifier:
- Must be unique across all services for your MID
- Must not start with
gl- - Can be used in place of the GID for Get Status and follow-on requests
- PayGlocal recommends V4 UUIDs or another high-entropy random string
Two Processing Models
You can configure your MID for either of these models:
Contact PayGlocal merchant support to configure your preferred model.
Standing Instructions
To set up a recurring payment mandate alongside the first payment, include thestandingInstruction data block in your GPI request. See Standing Instructions Flow for the complete setup.

