签名规则及示例

签名规则

代收————————

1.代收下单

接口地址:

/pay

请求参数

字段 类型 描述 是否必填
merchant_code String 商户号
country_code String 国家编码
order_no String 商户订单号
order_amount String 订单金额
pay_type String 支付类型(见支付类型)
notify_url String 回调地址
return_url String 支付成功后跳转的地址

成功响应

字段 类型 描述
code String 响应码: 0为请求成功,其它为请求失败
message String 响应信息
status Boolean true代表请求成功,false代表请求失败
order_no String 商户订单号
plat_order_no String 平台订单号
merchant_code String 商户号
country_code String 国家代码
pay_type String 通道类型
order_amount String 订单金额
mc_order_change_fee String 商户订单费率手续费(按照费率计算)
mc_order_single_fee String 商户订单单笔手续费
pay_url String 支付链接

2.代收查单

接口地址:

/queryPayOrder

请求参数

字段 类型 描述 是否必填
merchant_code String 商户号
country_code String 国家编码
order_no String 商户订单号

成功响应

字段 类型 描述
code String 响应码: 0为请求成功,其它为请求失败
message String 响应信息
status Boolean true代表请求成功,false代表请求失败
order_no String 商户订单号
plat_order_no String 平台订单号
merchant_code String 商户号
country_code String 国家代码
pay_type String 通道类型
order_amount String 订单金额
mc_order_change_fee String 商户订单费率手续费(按照费率计算)
mc_order_single_fee String 商户订单单笔手续费
order_status String 订单状态
sign String 签名

3.代收回调

回调将会以POST请求的方式,发送JSON数据,格式如下

{
  "sign": "169071F3858ECF55AE7EC4DEE30BCD4A",
  "transdata": {
    "code": 0,
    "country_code": "US",
    "mc_order_change_fee": "21.000000",
    "mc_order_single_fee": "0.000000",
    "merchant_code": "M250396456456456",
    "message": "success",
    "order_amount": "1500.000000",
    "order_no": "11134534535945",
    "order_status": "success",
    "pay_type": "dana",
    "plat_order_no": "C25188004564564562",
    "status": true
  }
}

下面的字段请从transdata获取

字段 类型 描述
order_no String 商户订单号
plat_order_no String 平台订单号
merchant_code String 商户号
country_code String 国家代码
pay_type String 通道类型
order_amount String 订单金额
mc_order_change_fee String 商户订单费率手续费(按照费率计算)
mc_order_single_fee String 商户订单单笔手续费
order_status String 订单状态

收到回调后,请回复字符串 success