Is There Any Api Integration for Gcash Payment? [Closed]

I'm using react-native for my app, it requires online payments. Since lots of people already using "gcash" to pay online, I'd like to ask if there is an API for that?

Not sure if GCash provides their own API but Paymongo has an API that can collect G-Cash payments. Perhaps you can check it out. Looks like they just charge per transaction.

Per , Collecting GCash payments on your website starts with creating a resource to generate a checkout URL where your customer needs to authorize an amount, wait for the authorization to complete and create a Payment resource to receive the authorized amount. A Source resource is used to generate GCash checkout URL to authorize a certain amount to be deducted from your customer's GCash account and send it to your PayMongo account. After completing the authorization, your integration uses the chargeable source to make a create payment request and receive the payment.

Specific API endpoints are listed on .

3

You can try using curl. This link may help you.

curl  \
-H "x-API-key: YOUR_X-API-KEY" \
-H "content-type: application/json" \
-d '{
  "merchantAccount":"YOUR_MERCHANT_ACCOUNT",
  "reference":"YOUR_ORDER_NUMBER",
  "amount":{
    "currency":"PHP",
    "value":1000
  },
  "paymentMethod":{
    "type":"gcash"
  },
  "returnUrl":""
}'
2

Is there any API integration for GCASH payment?

Yes. There is an API for GCASH in which software developers can use for integration.

Is the API available for the general public use?

No. As of this time of writing, GCASH didn't seem to publish the developer docs. Only some selected entities can access these APIs and developer documentations.

Who have access to the GCASH API?

PayMongo, Maya, Adyen, and others have access to the GCASH API. They then have their own APIs that would allow others to access the GCASH API via their custom interfaces.

Examples

Based on my experience, here is what I've already tried:

2

Adyen PHP G-Cash

$client = new \Adyen\Client();
$client->setXApiKey("YOUR_X-API-KEY");
$service = new \Adyen\Service\Checkout($client);
 
$params = array(
  "amount" => array(
    "currency" => "PHP",
    "value" => 1000
  ),
  "reference" => "YOUR_ORDER_NUMBER",
  "paymentMethod" => array(
    "type" => "gcash"
  ),
  "returnUrl" => "",
  "merchantAccount" => "YOUR_MERCHANT_ACCOUNT"
);
$result = $service->payments($params);
2
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest