🆕 #3474 【微信支付】增加2025.1.15正式上线的商户转账新版本的相关接口
This commit is contained in:
@@ -2,6 +2,7 @@ package com.github.binarywang.wxpay.service.impl;
|
||||
|
||||
import com.github.binarywang.wxpay.bean.transfer.QueryTransferBatchesRequest;
|
||||
import com.github.binarywang.wxpay.bean.transfer.TransferBatchesRequest;
|
||||
import com.github.binarywang.wxpay.bean.transfer.TransferBillsRequest;
|
||||
import com.github.binarywang.wxpay.exception.WxPayException;
|
||||
import com.github.binarywang.wxpay.service.WxPayService;
|
||||
import com.github.binarywang.wxpay.testbase.ApiTestModule;
|
||||
@@ -73,4 +74,17 @@ public class TransferServiceImplTest {
|
||||
public void testTransferBatchesOutBatchNoDetail() throws WxPayException {
|
||||
log.info("商家明细单号查询明细单:{}", this.payService.getTransferService().transferBatchesOutBatchNoDetail("1655447999520", "1655447989156"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransferBills() throws WxPayException {
|
||||
TransferBillsRequest transferBillsRequest = TransferBillsRequest.newBuilder()
|
||||
.appid("wxf636efh5xxxxx")
|
||||
.outBillNo("1655447989156")
|
||||
.transferSceneId("1005")
|
||||
.transferAmount(100)
|
||||
.transferRemark("测试转账")
|
||||
.openid("oX_7Jzr9gSZz4X_Xc9-_7HGf8XzI")
|
||||
.userName("测试用户").build();
|
||||
log.info("发起商家转账:{}", this.payService.getTransferService().transferBills(transferBillsRequest));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user