paycools-my
Languages
Languages
  • 简体中文
  • English
Languages
Languages
  • 简体中文
  • English
  1. 4. WebPay
  • Merchant Unified API Param
  • API Code Collection
  • Unified API Param
  • 1. Account
    • 1.1 Balance Inquiry
      POST
  • 2. Disbursement
    • Disburse API Supported Types
    • Account Verification Related Enum List
    • 2.1 Account Validation
      POST
    • 2.2 Check Account Validation Order Status
      POST
    • 2.3 Create Payout
      POST
    • 2.4 Check Payout Status
      POST
    • 2.5 Disburse callback notification api
      POST
  • 3. QR Code
    • QR Code Channel Code List
    • 3.1 QR Code Create
      POST
    • 3.2 QR Code Detail
      POST
    • 3.3 QR Code Payment List
      POST
    • 3.4 QR Code Payment Notification
      POST
  • 4. WebPay
    • WebPay Channel Code List
    • 4.1 WebPay Create
      POST
    • 4.2 Retrieve WebPay Status
      POST
    • 4.3 WebPay Payment Notification
      POST
  • 5. Refund
    • Refund Support Channel List
    • Refund Status Enum
    • 5.1 Refund
      POST
    • 5.2 Get Refund Payments
      POST
    • 5.3 Refund Notification
      POST
  1. 4. WebPay

4.1 WebPay Create

POST
/open-api/webpay/generate
param is a JSON-serialized string. The table below describes its decoded logical fields.
parameter namerequiredtype of datalengthdescription
timestampYeslong-current timestamp
channelCodeYesstring-channel code( WebPay ChannelCode List )
mchOrderIdYesstring1-32merchant order ID, alphanumeric, max length 32
amountYesinteger-amount, the unit is cent
notifyUrlYesstring1-256merchant payment notification URL
redirectUrlYesstring1-512payment redirectUrl URL
customerNameYesstring1-128customer name, max length 100
emailYesstring1-128customer email address
mobileYesstring10-11customer mobile phone number
remarkNOstring1-256remark
expireSecondsNOinteger-expiration time,unit is second,from 30 to 3600,default is 3600
Source documentation: https://docs.paycools.com.my/en/PaymentOrder/PaymentOrderCreate.html

请求参数

Body 参数application/json必填

示例
{
    "appId": "6e2d4b6f926c44f8ab4e0f5c76cdec69",
    "sign": "tVa+aoAXH0ls1IoPznzkFyF+4v+iTZaCSttPWmYl1kCHeh8mwao8cqAD7Y7wdymcr9yavKh4bKT18KeLu27g7Q5GqhEQ0cm1dkARe+i2xoH32la4HAzBfPj9liULDawGoPbo739+FLgZnV79CLaiukvqtnkgI/Km6J/KccRPl2CtS4PUjxCyRicOAcv91KZiVOxyhoP9bKhvwtCkCIlkpBHKWskBPCxxfctoORjgXWj7FhRPLYBuRDaczfmr2um9aNXhVoH1XFZf7Gu67n6RmeB0kc2dHFPI89JEI0PwGq+bvbCAEUtHK4SlLexCtbMoCgGWKTJbSMDTvVF126jz8g==",
    "param": "{\"mchOrderId\":\"EXAMPLE00000001\",\"amount\":1100,\"customerName\":\"Jonathan\",\"channelCode\":\"RPP_PUBLIC_URL\",\"email\":\"example@gmail.com\",\"mobile\":\"09123456789\",\"callbackUrl\":\"https://example.com/\",\"redirectUrl\":\"https://example.com/\",\"timestamp\":1676017834369,\"expireSeconds\":300}"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/open-api/webpay/generate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appId": "6e2d4b6f926c44f8ab4e0f5c76cdec69",
    "sign": "tVa+aoAXH0ls1IoPznzkFyF+4v+iTZaCSttPWmYl1kCHeh8mwao8cqAD7Y7wdymcr9yavKh4bKT18KeLu27g7Q5GqhEQ0cm1dkARe+i2xoH32la4HAzBfPj9liULDawGoPbo739+FLgZnV79CLaiukvqtnkgI/Km6J/KccRPl2CtS4PUjxCyRicOAcv91KZiVOxyhoP9bKhvwtCkCIlkpBHKWskBPCxxfctoORjgXWj7FhRPLYBuRDaczfmr2um9aNXhVoH1XFZf7Gu67n6RmeB0kc2dHFPI89JEI0PwGq+bvbCAEUtHK4SlLexCtbMoCgGWKTJbSMDTvVF126jz8g==",
    "param": "{\"mchOrderId\":\"EXAMPLE00000001\",\"amount\":1100,\"customerName\":\"Jonathan\",\"channelCode\":\"RPP_PUBLIC_URL\",\"email\":\"example@gmail.com\",\"mobile\":\"09123456789\",\"callbackUrl\":\"https://example.com/\",\"redirectUrl\":\"https://example.com/\",\"timestamp\":1676017834369,\"expireSeconds\":300}"
}'

返回响应

🟢200
application/json
Business result
Bodyapplication/json

示例
{
    "code": 10000,
    "message": "Success",
    "data": {
        "payUrl": "https://api.razorpay.com/v1/payments/NE3d4lYIu7XPgX/authenticate",
        "transactionId": "C1218702956934697612",
        "mchOrderId": "EXAMPLE00000001",
        "expiresTime": "2023-12-31 23:00:00"
    }
}
修改于 2026-08-31 11:04:18
上一页
WebPay Channel Code List
下一页
4.2 Retrieve WebPay Status
Built with