GCash
GCash is the Philippines' leading mobile wallet, with over 90 million registered users. It enables customers to make secure cashless payments for online purchases, bills, and more. With GCash, customers can complete purchases through a simple redirect-based flow using their GCash account.
Introduction
GCash uses a redirect-based payment flow. When a customer selects GCash at checkout, they are redirected to GCash's app or web interface to authenticate and confirm their payment, then redirected back to your website or app upon completion. GCash is a single-use payment method where customers must authenticate each payment.
This guide explains the process of integrating GCash into your app or website using Payrails.
Pre-requisites
Before you start accepting GCash payments with Payrails, there are a few requirements you must meet:
- Integrate with Payrails using one of our SDKs or our API
- Configure a new integration account for GCash via dLocal as a Payment Service Provider. If you do not have a dLocal integration already configured in your workspace, please follow the dLocal integration setup guide first.
- Enable GCash as a payment method in your dLocal integration configuration. In the Payrails portal, navigate to Settings → Integrations, select your dLocal integration instance, and enable the GCash checkbox under Payment methods, then save the account.
- Enable GCash as a payment option in your workflow.
- Make sure you're sending the GCash-specific meta fields in your requests.
Ways to integrate GCash
Payrails SDK
The simplest way to use GCash with Payrails is to use our drop-in in your checkout flow. With this integration type, no additional work is required to accept payments with GCash except for handling success/failure screens for your users.
For a more flexible implementation using our SDK, you can use our genericRedirectButton element. See special instructions here for your client-side implementation.
Server-to-server integration
You can integrate GCash by completely managing your own client-side implementation, and using Payrails APIs with a server-to-server integration to process GCash payments.
Parse GCash from lookup response
With a server-to-server integration, you can call our lookup payment options endpoint to get available payment options. As shown in the example below, you can see gCash returned as an option of the paymentCompositionOptions.
{
"name": "lookup",
"actionId": "0bb6413e-cabb-4074-99e6-9e815c69f25b",
"executedAt": "2026-03-26T12:00:00.000000000Z",
"data": {
"paymentCompositionOptions": [
{
"integrationType": "redirect",
"paymentMethodCode": "gCash",
"description": "GCash"
}
]
},
"links": {
"execution": "https://api.payrails.io/merchant/workflows/payment-acceptance/executions/83c534ac-13b7-43e6-b04b-f3e8b4eb4424",
"authorize": {
"method": "POST",
"href": "https://api.payrails.io/merchant/workflows/payment-acceptance/executions/83c534ac-13b7-43e6-b04b-f3e8b4eb4424/authorize"
}
}
}Pass GCash payment method in request to authorize payment with Payrails
You can then make a request to our authorize a payment endpoint with gCash as the paymentMethodCode. See an example below:
{
"executionId": "c0fd1c51-e709-47e5-bfd1-5d1c98f7d990",
"amount": {
"value": "50000",
"currency": "PHP"
},
"paymentComposition": [
{
"integrationType": "redirect",
"paymentMethodCode": "gCash",
"amount": {
"value": "50000",
"currency": "PHP"
}
}
],
"meta": {
"customer": {
"name": "Juan Dela Cruz",
"email": "[email protected]",
"country": {
"code": "PH"
}
}
},
"returnInfo": {
"success": "https://mysuccessurl.com",
"error": "https://myerrorurl.com"
}
}Note on amounts: PHP uses 2 decimal places. Amounts should be provided in the smallest currency unit — e.g.,
50000for ₱500.00.
Note: GCash is a redirect-based, single-use payment method. After calling the authorize endpoint, the customer will be redirected to GCash's app or web interface to authenticate and confirm the payment. Once confirmed, the customer will be redirected back to the
returnInfo.successURL. Make sure to provide validreturnInfoURLs in your authorization request.
Handle the redirect response
After the customer completes the payment on GCash's side, they will be redirected back to your success or error URL. You should then verify the payment status by checking the workflow execution status via the Payrails API or by listening to webhook notifications.
Supported currencies
GCash via dLocal supports the following presentment currency:
- PHP — Philippine Peso
Supported regions / countries
Customer regions
GCash is available to customers based in:
- Philippines 🇵🇭
Merchant regions
Merchants enabled for the Philippines can accept GCash payments via dLocal.
Supported workflows and services
| Workflow | Supported |
|---|---|
| Available via Payrails SDK | ✔️ |
| Available via Payrails API | ✔️ |
| Delayed / Manual Capture | ✖️ |
| Instant Capture | ✔️ |
| Cancel / Void | ✖️ |
| Refund / Reverse | ✔️ |
| Save Instruments | ✖️ |
| Merchant Initiated Transaction (MIT) | ✖️ |
Updated 2 days ago