1
0
mirror of synced 2026-02-14 16:57:30 +08:00

🆕 #3474 【微信支付】增加2025.1.15正式上线的商户转账新版本的相关接口

This commit is contained in:
allovine
2025-01-16 13:46:02 +08:00
committed by GitHub
parent 83bd92d260
commit be0dd8b692
8 changed files with 317 additions and 0 deletions

View File

@@ -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));
}
}