{{currentMenuLabel}}

总订单
{{stats.total_orders||0}}
总交易额(元)
{{fenToYuan(stats.total_amount)}}
总手续费(元)
{{fenToYuan(stats.total_fee)}}
今日交易(元)
{{fenToYuan(stats.today_amount)}}

交易趋势

日期订单数交易额(元)手续费(元)
{{t.date}}{{t.order_count}}{{fenToYuan(t.amount)}}{{fenToYuan(t.fee)}}

暂无交易数据

名称商户号AppID证书序列号证书私钥状态默认操作
{{c.name}}{{c.mch_id}}{{c.appid||'-'}}{{c.cert_serial_no||'-'}} {{c.cert_path?'✅ 已上传':'❌ 未上传'}} {{c.key_path?'✅ 已上传':'❌ 未上传'}} {{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.notify_status==='success'?'已通知':o.notify_status==='failed'?'失败':'待通知'}} {{o.created_at}}
{{oQuery.page}} / {{Math.ceil(oTotal/oQuery.pageSize)}}
退款号订单号原金额(元)退款金额(元)状态创建时间
{{r.refund_no}}{{r.order_no}} {{(r.total_amount/100).toFixed(2)}}{{(r.refund_amount/100).toFixed(2)}} {{statusText(r.status)}}{{r.created_at}}

暂无退款记录

{{rQuery.page}} / {{Math.ceil(rTotal/rQuery.pageSize)}}

App ID

{{merchantInfo.app_id}}

App Secret

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

网关地址

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

修改登录密码

{{pwdMsg}}

测试收银台

生成收银台二维码,手机扫码后输入金额即可拉起微信支付(仅用于测试)

扫码打开收银台

用手机微信扫描上方二维码

{{cashierUrl}}

接入指南

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

签名规则

sign = MD5(app_id + app_secret + timestamp)

1. 统一下单

POST /api/pay/order
{
  "app_id": "你的app_id",
  "timestamp": "当前时间戳(秒)",
  "nonce": "随机字符串(防重放)",
  "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": "退款原因"
}

4. 查询退款

POST /api/pay/refund-query
{
  "app_id": "你的app_id",
  "timestamp": "当前时间戳(秒)",
  "sign": "MD5签名",
  "refund_no": "系统退款号"
}

5. 关闭订单

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