TestWxPayService.java 1.64 KB
Newer Older
cy's avatar
cy committed
1 2 3 4
package cn.wisenergy.service.app;

import cn.wisenergy.common.utils.R;
import cn.wisenergy.model.dto.PayPageDto;
cy's avatar
cy committed
5
import com.fasterxml.jackson.core.JsonProcessingException;
cy's avatar
cy committed
6 7 8

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
cy's avatar
cy committed
9
import java.util.Map;
cy's avatar
cy committed
10
import java.util.SortedMap;
cy's avatar
cy committed
11 12 13 14 15 16 17


/**
 * @author chnegyan
 */
public interface TestWxPayService {
    /**
cy's avatar
cy committed
18
     * pc端微信支付
cy's avatar
cy committed
19 20
     * @Param 支付信息
     * @return 返回的信息
cy's avatar
cy committed
21
     */
cy's avatar
cy committed
22
    R<Map<String, String>> wxPay(PayPageDto payPageDto, HttpServletResponse response);
cy's avatar
cy committed
23

cy's avatar
cy committed
24 25
    /***
     * h5微信支付
cy's avatar
cy committed
26 27 28 29
     * @param payPageDto 支付信息
     * @param request 接收的数据
     * @param response 返回的信息
     * @return h5调支付的数据
cy's avatar
cy committed
30
     */
cy's avatar
cy committed
31 32
    R<String> h5WxPay(PayPageDto payPageDto,HttpServletRequest request,  HttpServletResponse response) throws JsonProcessingException;

cy's avatar
cy committed
33 34
    /***
     * 小程序微信支付
cy's avatar
cy committed
35 36 37 38
     * @param payPageDto 支付信息
     * @param request 接收的数据
     * @param response 返回的信息
     * @return 小程序调支付的数据
cy's avatar
cy committed
39 40 41
     */
    R<SortedMap<String, String>> WxPayApplets(PayPageDto payPageDto, HttpServletRequest request, HttpServletResponse response) throws JsonProcessingException;

cy's avatar
cy committed
42
    /***
cy's avatar
cy committed
43
     *支付成功回调
cy's avatar
cy committed
44 45
     * @param request 回调获取的数据
     * @param response 回调返回的数据
cy's avatar
cy committed
46
     */
cy's avatar
cy committed
47 48
    void wxPayCallBack(HttpServletRequest request, HttpServletResponse response) throws Exception;

cy's avatar
cy committed
49 50
    /***
     * 订单状态查询
cy's avatar
cy committed
51 52
     * @param out_trade_no 订单号
     * @return 订单状态
cy's avatar
cy committed
53
     */
cy's avatar
cy committed
54 55
    R<Map<String,String>> wxQuery(String out_trade_no) throws Exception;

cy's avatar
cy committed
56

cy's avatar
cy committed
57
}