POST http://order.hsifue.cn/order/place
下单操作, 返回支付中心的订单信息, 调用者可根据该信息发起后续的支付动作, 如进行WEB支付或对公转账汇款等
参数名 | 参数类型 | 参数含义 | 是否必填 |
|---|---|---|---|
inputCharset | String(8) | 字符编码, 固定为UTF-8 | 是 |
signType | String(3) | 签名算法, 可选择SHA-256, SHA-1, MD5, 推荐使用SHA-256 | 是 |
appKey | String(32) | 应用Key | 是 |
outOrderId | String(64) | 应用的订单标识 | 是 |
extra | String(255) | 自定义参数, 支付完成后, 支付中心会在回调消息中原样回传 | 否 |
dealPrice | Integer | 成交价格, 以分为单位 | 是 |
subject | String(40) | 商品名称 | 是 |
g_signature | String | 签名 | 是 |
curl -X POST -d "inputCharset=UTF-8&signType=SHA-256&appKey=KEkEp0AzKhHrbtMMJm0DofCyMDGHk1dj&outOrderId=outOrderId&extra=extra&dealPrice=100&subject=中文&g_signature=b5cb82cda8fa58a9f052e87ab0ac2520355127eb20748a5120885fc47eeeef25" http://order.hsifue.cn/order/place{
"code": "000000",
"message": "成功",
"data": {
"orderId": "480102824877883392",
"unionPayUrl": "http://order-test.hsifue.cn/payment/provider/union-pay/873624366263463936"
}
}参数名 | 参数含义 |
|---|---|
data.orderId | 支付中心的订单ID |
data.unionPayUrl | 聚合支付链接 |
code | message | 备注 |
|---|---|---|
000000 | 成功 | - |
999999 | 系统异常 | - |
000008 | 签名不存在 | - |
000006 | 签名非法 | - |
000002 | 数据不存在 | 应用不存在 |
100003 | 订单状态不正确 | 已存在非待支付状态的订单 |