io.gitee.putaoo.easypay.handler.WxpayHandler Maven / Gradle / Ivy
package io.gitee.putaoo.easypay.handler;
import io.gitee.putaoo.easypay.config.WxPayProperties;
import io.gitee.putaoo.easypay.constant.PayChannel;
import io.gitee.putaoo.easypay.domain.*;
import io.gitee.putaoo.easypay.feign.WxpayApi;
import io.gitee.putaoo.easypay.feign.WxpaySandboxApi;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;
public class WxpayHandler implements PayHandler{
private final WxpayApi wxpayApi;
private final WxpaySandboxApi wxpaySandboxApi;
private final WxPayProperties wxPayProperties;
public WxpayHandler(WxpayApi wxpayApi, WxpaySandboxApi wxpaySandboxApi, WxPayProperties wxPayProperties) {
this.wxpayApi = wxpayApi;
this.wxpaySandboxApi = wxpaySandboxApi;
this.wxPayProperties = wxPayProperties;
}
@Override
public PayChannel payChannel() {
return PayChannel.WXPAY;
}
@Override
public AppPayResponse create4app(AppPayRequest request) {
return null;
}
@Override
public FindOrderResponse find(FindOrderRequest request) {
return null;
}
@Override
public CloseOrderResponse close(CloseOrderRequest request) {
return null;
}
@Override
public RefundResponse refund(RefundRequest request) {
return null;
}
@Override
public FindRefundResponse findRefund(FindRefundRequest request) {
return null;
}
@Override
public CallbackResponse callback(HttpServletRequest request) {
return null;
}
}