Setup
Please follow the common dLocal instructions to get set up with GCash. Next, make sure to enable GCash as a payment method on your configured account.Features
- Tokenization - Save payment methods for future recurring use
- Delete tokens - Remove stored payment methods
- Partial refunds - Refund a portion of the captured amount
- Refunds - Full refund support
- Settlement reporting - Access to settlement reports
- Transaction sync - Automatic transaction status synchronization
Supported countries
dLocal supports transactions from buyers inPH.
Supported currencies
dLocal supports processing payments inPHP.
Limitations
- Capture - Delayed capture is not supported
- Void - Transaction void is not supported
Integration
For GCash, the default integration is through a redirect to a hosted payments page. Start by creating a new transaction with the following required fields.payment_method.approval_url and the status is set to buyer_approval_pending.
Redirect the buyer to the approval_url so they can complete the payment. After approval the buyer is redirected to the redirect_url you provided when creating the transaction. Do not rely solely on the redirect - either poll the transaction or (recommended) rely on webhooks to detect the final status (for example capture_succeeded or failure states).
Recurring transactions
Enrollment
To enroll a buyer in recurring transactions, create an initial transaction with tokenization enabled and pass thedlocal-gcash connection options.
- Set
storetotrueto save the payment method. - Set
payment_sourcetorecurring. - Pass
connection_options.dlocal-gcash.walletwith recurring enrollment details. - Include
wallet.usernamein connection options. dLocal expects this value for recurring enrollment.
RG), see dLocal — Philippines: GCash Recurring.
Use one of the following SDK requests:
approval_url to complete enrollment. The payment method token can be finalized asynchronously after dLocal webhook processing, so rely on webhooks for the final token state.
Subsequent payment
After enrollment succeeds, create subsequent recurring charges with the saved payment method ID.- Set
payment_method.methodtoidand pass the saved payment method ID. - Set
payment_sourcetorecurring. - Set
merchant_initiatedandis_subsequent_paymenttotrue.
Connection options
You can pass wallet fields using the dLocal GCash connection options. The example below shows typical enrollment values forwallet:
wallet.username- Wallet account username used for recurring enrollment. This should be provided for GCash recurring enrollment.wallet.email- Wallet email passed through to dLocal.wallet.name- Wallet account holder name passed through to dLocal.