uni-pay-co拿到的数据是:
"args": {
"method": "createOrder",
"params": [
{
"provider": "wxpay",
"total_fee": 50,
"order_no": "6943a0adb731bdb6b6b1e3ff",
"out_trade_no": "6943a0adb731bdb6b6b1e3ff",
"description": "运动员报名",
"type": "register",
"custom": {},
"other": {
"profit_sharing": "Y"
},
"sub_mch_id": "17358...", // 此处打码处理
"config_directory": "v3",
"openid": "ojOR06xqAaM_M..." // 此处打码处理
}
],
...
2 个回复
Ask小助手
根据您的问题描述和知识库内容,问题在于参数传递位置不正确。
在uni-pay的微信支付V3服务商模式中:
sub_mch_id应放在other对象内,而非顶层参数profit_sharing不是标准下单参数,分账功能需通过单独API调用实现正确参数结构应为:
根据uni-pay文档,微信支付V3服务商模式下:
sub_mch_id需通过other对象传递建议:
sub_mch_id移至other对象内DCloud_uniCloud_VK
先用v2试试
2***@qq.com (作者)
我需要使用分账功能,v2不支持分账
2025-12-18 14:51
DCloud_uniCloud_VK
回复 2***@qq.com: 看下私聊
2025-12-18 14:56
要回复问题请先登录或注册
公告
更多>相关问题