统一下单接口
开发中
POST
/realpay/gateway
请求参数
Body 参数application/json
appId
string
appid
method
string
方法名
reqDate
string
日期
charset
string
编码
bizContent
object
业务集合
orderNo
string
订单号
orderType
string
订单类型
payWayType
string
支付方式
amount
string
金额
notifyUrl
string
回调地址
attach
string
扩展参数
spbillCreateIp
string
使用方ip
hisBiz
object | null
his业务集合
insuranceParam
object
医保集合
sign
string
签名
signType
string
签名类型
extras
string
扩展参数
version
string
版本号
示例
{
"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
接口code
msg
string
接口描述
charset
string
编码
signType
string
编码格式
sign
string
签名
data
object
业务集合
payInfo
string
业务参数
insurancePayResult
string
医保参数
payAppid
string
支付appid
示例
{
"msgCode": "string",
"msg": "string",
"charset": "string",
"signType": "string",
"sign": "string",
"data": {
"payInfo": "string",
"insurancePayResult": "string",
"payAppid": "string"
}
}
修改于 2023-06-05 06:44:33