{{currentMenuLabel}}

总订单
{{stats.total_orders||0}}
总交易额(元)
{{fenToYuan(stats.total_amount)}}
总手续费(元)
{{fenToYuan(stats.total_fee)}}
今日交易(元)
{{fenToYuan(stats.today_amount)}}
名称商户号AppID证书序列号状态默认操作
{{c.name}}{{c.mch_id}}{{c.appid||'-'}}{{c.cert_serial_no||'-'}} {{c.status==='active'?'启用':'禁用'}} {{c.is_default?'✓':''}}

暂未配置微信商户号,点击上方按钮新增

系统订单号商户订单号金额(元)手续费状态微信交易号创建时间操作
{{o.order_no}}{{o.out_trade_no}} {{(o.amount/100).toFixed(2)}}{{(o.fee_amount/100).toFixed(2)}} {{statusText(o.status)}} {{o.wechat_transaction_id||'-'}}{{o.created_at}}
{{oQuery.page}} / {{Math.ceil(oTotal/oQuery.pageSize)}}

App ID

{{merchantInfo.app_id}}

App Secret

{{showSecret ? merchantInfo.app_secret : '••••••••••••'}}

网关地址

https://n.1.taolianwl.cn/api/pay

接入指南

N支付提供微信Native支付中转服务,商户通过API发起交易,系统调用微信支付完成收款并异步通知商户。

签名规则

sign = MD5(app_id + app_secret + timestamp)

1. 统一下单

POST /api/pay/order
{
  "app_id": "你的app_id",
  "timestamp": "当前时间戳(秒)",
  "sign": "MD5签名",
  "out_trade_no": "商户订单号",
  "amount": 100.00,
  "description": "商品描述",
  "notify_url": "回调通知地址"
}

2. 查询订单

POST /api/pay/query
{
  "app_id": "你的app_id",
  "timestamp": "当前时间戳(秒)",
  "sign": "MD5签名",
  "order_no": "系统订单号"
}

3. 申请退款

POST /api/pay/refund
{
  "app_id": "你的app_id",
  "timestamp": "当前时间戳(秒)",
  "sign": "MD5签名",
  "order_no": "系统订单号",
  "refund_amount": 50.00,
  "reason": "退款原因"
}