diff --git a/cloud-function/node-sdk/alipay-profit-sharing.md b/cloud-function/node-sdk/alipay-profit-sharing.md index ae37987c..0670f89e 100644 --- a/cloud-function/node-sdk/alipay-profit-sharing.md +++ b/cloud-function/node-sdk/alipay-profit-sharing.md @@ -23,6 +23,8 @@ Receiver 类型包括以下几个属性: # 支付宝商家分账 +{{ profitSharing.versionWarning() }} + 对某一订单进行分账,请查看[订单操作文档](/cloud-function/node-sdk/order.html#支付宝商家分账) ## 添加分账接收方 diff --git a/cloud-function/node-sdk/macro/profit-sharing.md b/cloud-function/node-sdk/macro/profit-sharing.md index 63c1e3ab..e20f1ced 100644 --- a/cloud-function/node-sdk/macro/profit-sharing.md +++ b/cloud-function/node-sdk/macro/profit-sharing.md @@ -14,6 +14,12 @@ ReceiverType 可选值说明: > 请发工单联系客服,不要重复调用接口,否则可能造成资金损失。(详见[微信官方文档](https://pay.weixin.qq.com/wiki/doc/api/allocation.php?chapter=27_1&index=1) 中错误码列表) {% endmacro %} + +{% macro versionWarning() %} +> **info** +> 分账功能仅商用版及商用版以上版本可以使用。 +{% endmacro %} + {% macro receiverTypeAlipay() %} ReceiverType 可选值说明: diff --git a/cloud-function/node-sdk/wechat-profit-sharing.md b/cloud-function/node-sdk/wechat-profit-sharing.md index 64edc733..11dd9391 100644 --- a/cloud-function/node-sdk/wechat-profit-sharing.md +++ b/cloud-function/node-sdk/wechat-profit-sharing.md @@ -2,6 +2,8 @@ # 微信直连商户分账 +{{ profitSharing.versionWarning() }} + 对某一订单进行分账,请查看[订单操作文档](/cloud-function/node-sdk/order.html#微信直连商户分账) ## 添加分账接收方 diff --git a/js-sdk/payment/frag/_pay.md b/js-sdk/payment/frag/_pay.md index a4fee11d..849a3c4c 100644 --- a/js-sdk/payment/frag/_pay.md +++ b/js-sdk/payment/frag/_pay.md @@ -1,3 +1,5 @@ +{% import "/cloud-function/node-sdk/macro/profit-sharing.md" as profitSharing %} + {% if apiPrefix == 'wx' %} {% set platformName = "微信" %} @@ -43,6 +45,10 @@ | merchandiseRecordID | String | N | 商品数据行 ID,可用于定位用户购买的物品 | | merchandiseSnapshot | Object | N | 根据业务需求自定义的数据 | | profitSharing | Boolean | N | 当前订单是否需要分账。分账操作,请查看[微信直连商户分账](/cloud-function/node-sdk/order.html#微信直连商户分账) | + +{{ profitSharing.versionWarning() }} + + {% elif apiPrefix == 'tt' %} | 参数 | 类型 | 必填 | 参数描述 | | :--------------------- | :------ | :-- | :------ |