统一支付平台接口文档
  1. 支付接口
统一支付平台接口文档
  • 支付接口
    • 统一下单接口
      POST
    • 窗口条码付支付接口
      POST
    • 二维码扫码支付接口
      POST
    • 获取支付宝医保支付户付款码
      POST
  • 功能接口
    • 支付查询接口
      POST
    • 退费查询接口
      POST
    • 退费接口
      POST
    • 撤销接口
      POST
    • 账单下载接口
      POST
    • 获取支付平台appid
      POST
  • 医保一码付
    • 签约查询接口
      POST
    • 一码付支付
      POST
  • 签名
  • 支付流程
  • 对账试图标准
  1. 支付接口

统一下单接口

开发中
POST
/realpay/gateway
非窗口、自助机等终端。如微信公众号、微信小程序、支付宝生活号等终端可用。

请求参数

Body 参数application/json

示例
{
    "charset": "UTF-8",
    "method": "rop.trade.union.create",
    "reqDate": "20220921134407",
    "appId": "测试",
    "bizContent": "{\"orderNo\":\"cs10000000001\",\"orderType\":1,\"payWayType\":32,\"amount\":0.01,\"notifyUrl\":\"http://127.0.0.1:9090/rawTransNotify\",\"currencyType\":156,\"attach\":\"123\",\"operatorName\":null,\"wapUrl\":null,\"spbillCreateIp\":\"47.92.41.24\",\"overTime\":null,\"timeoutExpress\":null,\"hisBiz\":null,\"clientType\":null,\"operatorCode\":null}",
    "sign": "Or5t1vu1PmNVuekvg4I23TPRF7IGVgu/ZHMD6mybo8KmGDoTTng4e0hG0x5W4AeMHRz4eUVfy1w8oSPq90N57LXBpxU0Lqu5jtvpQaHEFQo5uJ8iHCw1p8li1W1SIkqlRvlfvbDic5/rcDY8mcPx7zKO3mlg7QSTep7pTVgZV6I=",
    "signType": "RSA",
    "extras": "{\"trmId\":null,\"trmBchNo\":null,\"trmPosNo\":null,\"macKey\":null,\"subPayType\":null,\"clinicCode\":null,\"recipeNos\":null,\"inpatientSeriNo\":null,\"markNo\":null,\"markType\":null,\"passWord\":null,\"openid\":\"oTasLj92pwCrXsVb9LHYR-VkdskQ\",\"phone\":null,\"userId\":null,\"authCode\":null,\"subject\":null,\"tradeId\":null,\"cyberSourceCardType\":null,\"cyberSourceCardNumber\":null,\"cyberSourceCardExpiryDate\":null,\"frontUrl\":null,\"cancelUrl\":null,\"locale\":null,\"payChannel\":null,\"productCode\":null,\"outTradeNo\":null,\"scene\":null,\"industry\":null,\"payAuthNo\":null,\"sellerId\":null,\"totalAmount\":null,\"insurancePayScene\":null,\"body\":null,\"timeoutExpress\":null,\"orgNo\":null,\"orgName\":null,\"serialNo\":null,\"billNo\":null,\"requestContent\":null,\"gmtOutCreate\":null,\"patientName\":null,\"isInsurance\":null,\"medicalCardInstId\":null,\"medicalCardId\":null,\"medicalRequesCotennt\":null,\"patientId\":null,\"patienName\":null,\"hisOperNum\":null,\"refundAmount\":null,\"hisRefundTime\":null,\"orgPowerTranId\":null,\"referUrl\":null}",
    "version": "1.0"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://test-cn.your-api-server.com/realpay/gateway' \
--header 'Content-Type: application/json' \
--data-raw '{
    "charset": "UTF-8",
    "method": "rop.trade.union.create",
    "reqDate": "20220921134407",
    "appId": "测试",
    "bizContent": "{\"orderNo\":\"cs10000000001\",\"orderType\":1,\"payWayType\":32,\"amount\":0.01,\"notifyUrl\":\"http://127.0.0.1:9090/rawTransNotify\",\"currencyType\":156,\"attach\":\"123\",\"operatorName\":null,\"wapUrl\":null,\"spbillCreateIp\":\"47.92.41.24\",\"overTime\":null,\"timeoutExpress\":null,\"hisBiz\":null,\"clientType\":null,\"operatorCode\":null}",
    "sign": "Or5t1vu1PmNVuekvg4I23TPRF7IGVgu/ZHMD6mybo8KmGDoTTng4e0hG0x5W4AeMHRz4eUVfy1w8oSPq90N57LXBpxU0Lqu5jtvpQaHEFQo5uJ8iHCw1p8li1W1SIkqlRvlfvbDic5/rcDY8mcPx7zKO3mlg7QSTep7pTVgZV6I=",
    "signType": "RSA",
    "extras": "{\"trmId\":null,\"trmBchNo\":null,\"trmPosNo\":null,\"macKey\":null,\"subPayType\":null,\"clinicCode\":null,\"recipeNos\":null,\"inpatientSeriNo\":null,\"markNo\":null,\"markType\":null,\"passWord\":null,\"openid\":\"oTasLj92pwCrXsVb9LHYR-VkdskQ\",\"phone\":null,\"userId\":null,\"authCode\":null,\"subject\":null,\"tradeId\":null,\"cyberSourceCardType\":null,\"cyberSourceCardNumber\":null,\"cyberSourceCardExpiryDate\":null,\"frontUrl\":null,\"cancelUrl\":null,\"locale\":null,\"payChannel\":null,\"productCode\":null,\"outTradeNo\":null,\"scene\":null,\"industry\":null,\"payAuthNo\":null,\"sellerId\":null,\"totalAmount\":null,\"insurancePayScene\":null,\"body\":null,\"timeoutExpress\":null,\"orgNo\":null,\"orgName\":null,\"serialNo\":null,\"billNo\":null,\"requestContent\":null,\"gmtOutCreate\":null,\"patientName\":null,\"isInsurance\":null,\"medicalCardInstId\":null,\"medicalCardId\":null,\"medicalRequesCotennt\":null,\"patientId\":null,\"patienName\":null,\"hisOperNum\":null,\"refundAmount\":null,\"hisRefundTime\":null,\"orgPowerTranId\":null,\"referUrl\":null}",
    "version": "1.0"
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "msgCode": "string",
    "msg": "string",
    "charset": "string",
    "signType": "string",
    "sign": "string",
    "data": {
        "payInfo": "string",
        "insurancePayResult": "string",
        "payAppid": "string"
    }
}
修改于 2023-06-05 06:44:33
下一页
窗口条码付支付接口
Built with