1
0
mirror of synced 2025-12-25 20:17:56 +08:00

🆕 #2627【微信支付】增加V3分账动账通知解析方法

This commit is contained in:
Wyman
2022-04-29 09:48:22 +08:00
committed by GitHub
parent 40f10de24b
commit 42c57b6de9
5 changed files with 382 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
package com.github.binarywang.wxpay.service.impl;
import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader;
import com.github.binarywang.wxpay.exception.WxPayException;
import com.github.binarywang.wxpay.service.WxPayService;
import com.github.binarywang.wxpay.testbase.ApiTestModule;
import com.google.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
/**
* 测试类
*
* @author yuanbo
* @create 2022-04-26-22:33 PM
*/
@Test
@Guice(modules = ApiTestModule.class)
public class ProfitSharingV3ServiceImplTest {
private final Logger logger = LoggerFactory.getLogger(this.getClass());
@Inject
private WxPayService payService;
@Test
public void testProfitSharingNotifyData() throws WxPayException {
SignatureHeader header = new SignatureHeader();
header.setSerialNo("Wechatpay-Serial");
header.setTimeStamp("Wechatpay-Timestamp");
header.setNonce("Wechatpay-Nonce");
header.setSigned("Wechatpay-Signature");
String data = "body";
this.logger.info(this.payService.getProfitSharingV3Service().getProfitSharingNotifyData(data,header).toString());
}
}