Skip to content

Commit 1a136a2

Browse files
committed
🆕 #1385 微信支付付款码支付请求对象添加支持分账的参数
1 parent 6b3a09a commit 1a136a2

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayMicropayRequest.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/**
88
* <pre>
9-
* 提交刷卡支付请求对象类
9+
* 提交付款码支付请求对象类
1010
* Created by Binary Wang on 2017-3-23.
1111
* </pre>
1212
*
@@ -211,6 +211,18 @@ public class WxPayMicropayRequest extends BaseWxPayRequest {
211211
@XStreamAlias("scene_info")
212212
private String sceneInfo;
213213

214+
/**
215+
* <pre>
216+
* 字段名:是否指定服务商分账.
217+
* 变量名:profit_sharing
218+
* 是否必填:否
219+
* 详情:Y-是,需要分账 N-否,不分账,字母要求大写,不传默认不分账
220+
* 详细参考 https://pay.weixin.qq.com/wiki/doc/api/allocation_sl.php?chapter=24_3&index=3
221+
* </pre>
222+
*/
223+
@XStreamAlias("profit_sharing")
224+
private String profitSharing;
225+
214226
@Override
215227
protected void checkConstraints() {
216228
//do nothing

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/WxPayService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ WxPayRefundQueryResult refundQuery(String transactionId, String outTradeNo, Stri
490490

491491
/**
492492
* <pre>
493-
* 提交刷卡支付.
493+
* 提交付款码支付.
494494
* 文档地址:https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_10&index=1
495495
* 应用场景:
496496
* 收银员使用扫码设备读取微信用户刷卡授权码以后,二维码或条码信息传送至商户收银台,由商户收银台或者商户后台调用该接口发起支付。

0 commit comments

Comments
 (0)