🎨 【微信支付】优化复用订单通知SignatureHeader
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user