#APP 支付
# APP 支付 # 说明 该接口支持支付宝、微信 仅支持已开对公账户的企业商户,拉起支付宝/微信支付 # 接口地址 https://open.weidoufu.com/pay/app (opens new window)
请求方式:POST
# 接口参数 字段名称 字段类型 必填参数 说明 (AccessKey/SecretKey)应用密钥 access_key string(32) 是 应用密钥的 AK,即是 AccessKey appid string(32) 是 APP应用 ID,需联系客服进行配置才可以使用 body string(32) 是 商品名称 例如:QQ 会员充值 out_order_no string(32) 是 商户订单号(字母、数字,至少 18 位长度) pay_type int(2) 是 支付类型:1-微信;2-支付宝 total_fee int(9) 是 价格单位:分 notify_url string(128) 是 你平台的接收回调通知的地址 expire int(2) 否 订单过期分钟,默认 30,最大值 60;例如:10,即是 10 分钟 attach string(128) 否 附加信息,回调时原样传回 例如:{test:'test1_params'} ledger string(512) 否 分账接收方,jsonArray 格式 例如:'[{"amount":1,"sub_mch_no":"xxxxxxxx"}]' sign string 是 签名结果(大写),详见 签名算法 (opens new window) # 返回参数 返回为 json 格式
名称 字段类型 必填参数 说明 code int 是 1:成功 0:失败 message string 是 返回描述信息 status string 是 返回状态,有 success 和 fail todo_url string 是 APP跳转链接,唤起 APP 付款 mch_trade_no string 是 平台返回的订单号 out_order_no string 是 商户订单号(字母、数字) 实例成功返回结果:
{
code: 1,
data: {
mch_trade_no: "202105070633559103599123",
out_order_no: "10018801620383702789",
todo_url: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
},
message: "成功",
status: "success"
}
注意:以上数据仅做展示,不具真实性