cn.jsbintask.wxpay.WxPayClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wxpay-sdk Show documentation
Show all versions of wxpay-sdk Show documentation
wxpay-sdk is a tool for WX pay.
The newest version!
package cn.jsbintask.wxpay;
import cn.jsbintask.wxpay.request.AbstractWxPayRequest;
import cn.jsbintask.wxpay.response.WxPayCommonError;
import cn.jsbintask.wxpay.response.WxPayResponse;
import java.util.Map;
import java.util.function.Consumer;
/**
* @author [email protected]
* @date 2019/9/17 14:34
*/
public interface WxPayClient {
/**
* 支持域名切换重试
*/
void execute(AbstractWxPayRequest wxPayRequest,
Consumer responseConsumer,
Consumer errorConsumer) throws WxPayException;
/**
* 支持域名切换重试
*/
T execute(AbstractWxPayRequest wxPayRequest) throws WxPayException;
/**
* 验签
*/
boolean checkResponseSign(Map wxPayResponse);
}