二维码扫码支付接口
开发中
POST
/realpay/gateway
请求参数
Body 参数application/json
appId
string
appid
charset
string
编码code
method
string
方法名
reqDate
string
时间
bizContent
object
支付参数集合
orderNo
string
订单号
orderType
integer
必需
payWayType
integer
必需
subject
string
订单描述
totalAmount
string
订单金额
overtime
string
超时时间
operatorName
string
收费员名
operatorCode
string
收费员编码
attach
string
扩展参数
notifyUrl
string
回调地址
hisBiz
object
患者信息
sign
string
签名
signType
string
签名code
version
string
版本号
示例
{
"charset": "UTF-8",
"method": "rop.trade.precreate",
"reqDate": "20230411111209",
"appId": "gtxcs",
"bizContent": "{\"orderNo\":\"abc0000000001111333\",\"orderType\":2,\"payWayType\":1102,\"subject\":\"费用补缴\",\"totalAmount\":0.01,\"notifyContentType\":null,\"attach\":null,\"notifyUrl\":null,\"overtime\":20,\"operatorName\":\"delaycsname\",\"operatorCode\":\"delaycscode\",\"hisBiz\":{\"clinicCode\":\"111\",\"recipeNos\":null,\"inpatientNo\":null,\"inpatientSeriNo\":null,\"markType\":null,\"markNo\":null,\"patientName\":null,\"idCard\":null,\"cardNo\":\"1111\",\"patientPhone\":null}}",
"sign": "kpPbJhc9ysYSLWf98A7gwseFURDtz1BMJa6eiV/99H7TwR9MHkvGGMY/xoqLItyZKkunlda2QE9LrO51l5aGv8aCR0zRJ0JRU55LbFAuRPGxih5x1QoFvzMyRYLV555Hg84YptRfX/opDXL6xFCOOOA5KRgA/WUqhn+89W24wRA=",
"signType": "RSA",
"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.precreate",
"reqDate": "20230411111209",
"appId": "gtxcs",
"bizContent": "{\"orderNo\":\"abc0000000001111333\",\"orderType\":2,\"payWayType\":1102,\"subject\":\"费用补缴\",\"totalAmount\":0.01,\"notifyContentType\":null,\"attach\":null,\"notifyUrl\":null,\"overtime\":20,\"operatorName\":\"delaycsname\",\"operatorCode\":\"delaycscode\",\"hisBiz\":{\"clinicCode\":\"111\",\"recipeNos\":null,\"inpatientNo\":null,\"inpatientSeriNo\":null,\"markType\":null,\"markNo\":null,\"patientName\":null,\"idCard\":null,\"cardNo\":\"1111\",\"patientPhone\":null}}",
"sign": "kpPbJhc9ysYSLWf98A7gwseFURDtz1BMJa6eiV/99H7TwR9MHkvGGMY/xoqLItyZKkunlda2QE9LrO51l5aGv8aCR0zRJ0JRU55LbFAuRPGxih5x1QoFvzMyRYLV555Hg84YptRfX/opDXL6xFCOOOA5KRgA/WUqhn+89W24wRA=",
"signType": "RSA",
"version": "1.0"
}'
返回响应
🟢200成功
application/json
Body
msgCode
string
接口code
msg
string
描述
charset
string
编码格式
signType
string
签名code
sign
string
签名
data
object
业务参数集合
payInfo
string
二维码生成链接
示例
{
"msgCode": "0",
"msg": null,
"charset": "UTF-8",
"signType": "RSA",
"sign": "eEAZZXwq1sxGbhN6uw1/WMAN+Y2Isc5L98sReCwlTMVAgfnVy+DmYgiCBdSV5lV7CMfjQZX0Pvo+J7HhPdeeffavoytdfqhbOhozN/ZlPz7DZKCvGqFdDBsC350kNZvLBzKhSEViIH6xQIDIWZYEWfa8gpCJxNwM20Vk0=",
"data": {
"payInfo": "https://mobile.abchina.com/mpay/mobileBank/zh_CN/EBusinessModule/BarcodeH5Act.aspx?chn=01&mchid=390171939150000002774306025900192645",
"insurancePayResult": null,
"payAppid": null
}
}
修改于 2025-02-20 09:17:42