OnlinePay API
  1. Payin
OnlinePay API
  • Introduction
    • Introduction
    • How to Start
    • Country Code
    • Country Info
    • Currency Code
    • Error Code
    • Transfer Order Info Type
    • Transfer Order File Type
    • Per Bank
    • Spei Bank
  • Payin
    • OnRamps API
      GET
    • Alipay API
      POST
    • Credit Card API
      POST
    • Crypto Pay API
      POST
    • GCash API
      POST
    • PerTransfer API
      POST
    • PIX API
      POST
    • SEPA API
      POST
    • SPEI API
      POST
    • Union Pay API
      POST
    • WeChat API
      POST
    • CheckOut
      POST
    • CheckOut Payment
      POST
  • Payout
    • Bank Account
      POST
    • Card
      POST
    • Per Transfer
      POST
    • Pix
      POST
    • CheckOut
      POST
    • Spei Payout
      POST
  • Notify
    • Notify WebHook API
    • Card Notify WebHook API
  • Refund
    • Refund API
  • Review
    • Upload SEPA File API
  • Query
    • Query API
    • QueryBalance API
    • QueryOrderList API
  • Card
    • CreateCardholder API
    • CreateCard API
    • QueryCardInfo API
    • ActiveCard API
    • TopUpCard API
    • CardWithdraw API
    • QueryCardTransaction API
    • QueryCardBalance API
    • FreezeCard API
    • UnFreezeCard API
    • CancelCard API
    • AddVpaScene API
    • UploadFile API
  1. Payin

GCash API

Testing Env
https://testpay.onlinepay.ai
Testing Env
https://testpay.onlinepay.ai
POST
/payment
OnlinePay will obtain the HTTP Header referer to verify the website source. The website source must be configured by OnlinePay to be verified. If you do not access the interface through a browser, you need to actively add a referer.

Request

Header Params

Body Params application/json

Example
{
    "merNo": -51416818,
    "merOrderNo": "cillum",
    "currencyCode": "PGK",
    "sourceAmount": "812.49",
    "returnUrl": "https://grouchy-scaffold.name/",
    "notifyUrl": "https://lumpy-carnival.name/",
    "sign": "dolore aliquip voluptate",
    "ipAddress": "bd67:aa2a:8d7d:7bad:2b8d:8f9d:deef:bbad",
    "version": "sit enim anim magna occaecat",
    "userId": "voluptate dolore aute",
    "email": "Sophia83@gmail.com",
    "osType": "dolore",
    "terminal": "quis in",
    "productInfoList": [
        {
            "sku": "PROD001",
            "productName": "Example Product",
            "price": "100.05",
            "quantity": "1"
        }
    ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://testpay.onlinepay.ai/payment' \
--header 'paymentType: GCASH' \
--header 'Content-Type: application/json' \
--data-raw '{
    "merNo": -51416818,
    "merOrderNo": "cillum",
    "currencyCode": "PGK",
    "sourceAmount": "812.49",
    "returnUrl": "https://grouchy-scaffold.name/",
    "notifyUrl": "https://lumpy-carnival.name/",
    "sign": "dolore aliquip voluptate",
    "ipAddress": "bd67:aa2a:8d7d:7bad:2b8d:8f9d:deef:bbad",
    "version": "sit enim anim magna occaecat",
    "userId": "voluptate dolore aute",
    "email": "Sophia83@gmail.com",
    "osType": "dolore",
    "terminal": "quis in",
    "productInfoList": [
        {
            "sku": "PROD001",
            "productName": "Example Product",
            "price": "100.05",
            "quantity": "1"
        }
    ]
}'

Responses

🟢200OK
application/json
Body

Example
{
    "code":"00000",
    "message":"SUCCESS",
    "data":{
        "payCode":0,
        "tradeNo":"3333333",
        "merorderNo":"222222",
        "payUrl":"https://abc.com/"
     }
}
Modified at 2025-07-04 06:43:44
Previous
Crypto Pay API
Next
PerTransfer API
Built with