1
0
mirror of synced 2025-12-27 05:19:07 +08:00

🎨 【微信支付】优化复用订单通知SignatureHeader

This commit is contained in:
linyaqiang
2023-07-09 13:21:51 +00:00
committed by Binary Wang
parent e621bb1828
commit e4b2f94af5
3 changed files with 10 additions and 12 deletions

View File

@@ -1,13 +1,11 @@
package com.github.binarywang.wxpay.service.impl;
import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader;
import com.github.binarywang.wxpay.bean.notify.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 lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
@@ -27,11 +25,11 @@ public class ProfitSharingV3ServiceImplTest {
@Test
public void testProfitSharingNotifyData() throws WxPayException {
SignatureHeader header = new SignatureHeader();
header.setSerialNo("Wechatpay-Serial");
header.setSerial("Wechatpay-Serial");
header.setTimeStamp("Wechatpay-Timestamp");
header.setNonce("Wechatpay-Nonce");
header.setSigned("Wechatpay-Signature");
header.setSignature("Wechatpay-Signature");
String data = "body";
log.info(this.payService.getProfitSharingV3Service().getProfitSharingNotifyData(data,header).toString());
log.info(this.payService.getProfitSharingV3Service().getProfitSharingNotifyResult(data,header).toString());
}
}