GCash
Features
Processing currencies | PHP |
---|---|
Settlement currencies | GBP,USD,EUR,HKD |
Minimum transaction amount | 1 PHP |
Maximum transaction amount | No Transaction Limit |
Refunds | ✅ |
Partial Refunds | ✅ |
Multiple partial refund | ❌ |
Chargeback | ❌ |
Integration Method
gcash
1.
2.
Direct API
How to integration
gcash
to the list of payment method types.{
"amount":30000,
"currency":"PHP",
"confirm":true,
"payment_method_options":{
"gcash":{
"terminal_type":"WEB"
}
},
"payment_method_data":{
"type":"gcash"
},
"merchant_order_id":"商户订单号",
"return_url":"https://wooshpay.com"
}
{
"id": "pi_1692411609156157440",
"object": "payment_intent",
"created": 1692337346000,
"livemode": false,
"currency": "PHP",
"amount": 30000,
"status": "requires_action",
"merchant_order_id": "商户订单号",
"client_secret": "pi_1692411609156157440_secret_LTUJaQca5yi6krhonAQoGUL8",
"next_action": {
"type": "redirect_to_url",
"gcash_handle_redirect": {
"url": "https://open-sea-global.alipayplus.com/api/open/v1/ac/cashier/self/codevalue/checkout.htm?codeValue=2816660400932RVP49jpe2t3Jz6HrZO304ax&loadMode=2"
}
},
"payment_method_types": [
"gcash"
],
"confirmation_method": "automatic",
"payment_method_options": {
"gcash": {
"terminal_type": "WEB"
}
},
"return_url": "https://wooshpay.com",
"payment_method": "pm_1692411609059688448",
"capture_method": "automatic"
}
Checkout
Payment flow
1.
1.
1.
2.
Create a Session
{
"cancel_url": "www.wooshpay.com",
"mode": "payment",
"success_url": "https://wooshpay.com/",
"payment_method_types": [
"gcash"
],
"line_items": [
{
"price_data": {
"currency": "PHP",
"product": null,
"unit_amount": 20000,
"active": true,
"metadata": {
"key1": "value1",
"key2": "value2"
},
"nickname": "apple",
"product_data": {
"id": null,
"name": "apple",
"active": true,
"description": "very delicious",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"url": "www.wooshpay.com"
},
"billing_scheme": "testscheme",
"lookup_key": "test_lookup_key"
},
"quantity": 1
}
]
}
{
"id": "cs_1661926259464077312",
"object": "checkout.session",
"created": 1685069072000,
"currency": "PHP",
"customer": "",
"mode": "payment",
"livemode": false,
"status": "open",
"url": "https://checkouttest.wooshpay.com/pay/cs_test_1661926259464077312?key=pk_test_NTE1OTU5NzQ3NTQ2MTM5ODkzNzcxOktFZ0xlam1KbUxUb2gyUUNqWVVoaGpDSjE2NjkzNDUwMDgxMTE=",
"cancel_url": "www.wooshpay.com",
"line_items": {
"object": "list",
"data": [
{
"id": "li_1661926259510214656",
"object": "item",
"currency": "PHP",
"description": "apple",
"price": {
"id": "price_1661926259543769088",
"object": "price",
"created": 1685069072000,
"active": true,
"currency": "PHP",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"nickname": "apple",
"product": {
"id": "prod_1661926259560546304",
"object": "product",
"created": 1685069072000,
"active": true,
"description": "very delicious",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"name": "apple",
"livemode": false,
"url": "www.wooshpay.com",
"updated": 1685069072000
},
"type": "one_time",
"livemode": false,
"unit_amount": 20000,
"billing_scheme": "per_unit",
"lookup_key": "test_lookup_key"
},
"quantity": 1,
"amount_subtotal": 20000,
"amount_total": 20000
}
]
},
"payment_intent": "pi_1661926259778650112",
"payment_method_types": [
"gcash"
],
"payment_status": "unpaid",
"success_url": "https://wooshpay.com/",
"amount_subtotal": 20000,
"amount_total": 20000,
"billing_address_collection": "auto",
"expires_at": 1685155472015,
"payment_link": "",
"client_secret": "pi_1661926259778650112_secret_BtNbU3T2LqvdqRNTYsXsgkh3"
}
Next step
Create a Webhook
Create a Refund
Modified at 2024-03-22 07:54:44