All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.jsbintask.wxpay.WxPayClient Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy