feat(pay): 接入微信支付V3原路退款(按支付渠道分流 + 幂等 + 退款回调)

- 新增微信退款客户端 createRefund/queryRefundByOutRefundNo(/v3/refund/domestic/refunds)

- 新增退款桥接模块与 payment_refunds 幂等退款记录表

- 订单退款按渠道分流:微信支付原路退回微信;余额支付退回钱包余额;微信退款失败(502)不回退余额,防重复退款

- 覆盖拒单/买家取消/仲裁全额与部分/超时自动退款;新增 /api/pay/wechat/refund-notify 回调

- 后台新增退款回调地址配置;文档补充退款验收说明

- 新增回归护栏 wechat-refund.spec.ts(77 套件/605 用例全绿)
这个提交包含在:
xcbyy
2026-10-19 08:47:08 +08:00
父节点 e719de59a2
当前提交 8edffbefa2
共有 8 个文件被更改,包括 428 次插入 和 67 次删除

查看文件

@@ -318,6 +318,13 @@
allow-clear
/>
</a-form-item>
<a-form-item label="退款结果回调地址 (refund_notify_url,选填)">
<a-input
v-model="wxPayForm.refundNotifyUrl"
placeholder="https://peiww.gynhc.com/api/pay/wechat/refund-notify"
allow-clear
/>
</a-form-item>
<a-form-item
label="转账场景信息 (transfer_scene_report_infos,部分场景必填)"
help='JSON 数组,元素形如 {"info_type":"岗位类型","info_content":"外卖骑手"};不同转账场景要求的 info_type 不同,请以微信商户平台「商家转账到零钱」该场景说明为准。留空则不提交。'
@@ -420,6 +427,7 @@
transferSceneId: '',
transferRemark: '佣金提现',
transferNotifyUrl: 'https://peiww.gynhc.com/api/pay/wechat/transfer-notify',
refundNotifyUrl: 'https://peiww.gynhc.com/api/pay/wechat/refund-notify',
transferUserNameEnabled: false,
transferSceneReportInfos: [] as Array<{ info_type: string; info_content: string }>,
transferSceneReportInfosText: '',