订单数据签名
访问路径:api/1/wxpay/applugin_sign
接口说明:APP插件订单数据数据签名接口
URL结构
https://api.17wanxiao.com/api/1/wxpay/applugin_sign
接口协议:HTTPS
HTTP请求方式:POST
请求参数
参数 | 必选 | 类型 | 说明 |
access_token | true | string | 访问令牌,请妥善保管,泄漏会导致用户信息泄漏 |
client_sercet | true | string | 开放平台密钥 |
merchant_olid | true | int | 商户账号 (需要第三方申请,参考:申请方式) |
order_no | true | string | 商户订单号 |
total_fee | true | float | 支付金额,单位:分 |
gateway_id | false | float | (非必填字段,可从api/1/wxpay/gate ways接口获取)资金来源名称 |
gateway_type | false | float | (非必填字段,从api/1/wxpay/gate ways接口获取)资金来源类型 |
norce_str | true | float | 随机数,保证签名不可预测 |
accdescrp | true | float | 商品名称 |
返回参数
参数 | 必选 | 类型 | 说明 |
sign | true | string | 完美校园app插件订单签名 |
acccode | true | string | 业务编码 |
gateway_id | true | string | 支付方式ID |
gateway_type | true | string | 支付类型 |
total_fee | true | string | 支付金额 |
accdescrp | true | float | 商品名称 |
app_id | true | int | 固定值,由签名接口给出 |
ver | true | string | 固定值:1.0 |
olid | true | int | 付款人账号 |
merchant_olid | true | int | 商户帐号 |
order_no | true | string | 商户订单号 |
返回示例
{
"sign": "8678B2DB644C9869",
"acccode": "301002",
"gateway_id": "208",
"gateway_type": "wxpay",
"total_fee": "100",
"accdescrp": "测试",
"app_id": "100",
"ver": "1.0",
"olid": "94422",
"merchant_olid": "24",
"order_no": "1459946503742123"
}