935090232@qq.com
2022-01-24 f3f5481dba09ddf9e7a83ba83abb5a3250914a2a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.matrix.component.wechat.externalInterface.service;
 
import com.matrix.component.wechat.externalInterface.common.WechatConfigure;
import com.matrix.component.wechat.externalInterface.protocol.queryProtocol.ScanPayQueryReqData;
 
/**
 * User: rizenguo
 * Date: 2014/10/29
 * Time: 16:04
 */
public class ScanPayQueryService extends BaseService{
 
    public ScanPayQueryService() throws IllegalAccessException, InstantiationException, ClassNotFoundException {
        super(WechatConfigure.PAY_QUERY_API,WechatConfigure.HttpsRequestClassName);
    }
 
    /**
     * 请求支付查询服务
     * @param scanPayQueryReqData 这个数据对象里面包含了API要求提交的各种数据字段
     * @return API返回的XML数据
     * @throws Exception
     */
    public String request(ScanPayQueryReqData scanPayQueryReqData) throws Exception {
 
        //--------------------------------------------------------------------
        //发送HTTPS的Post请求到API地址
        //--------------------------------------------------------------------
        String responseString = sendPost(scanPayQueryReqData);
 
        return responseString;
    }
 
 
}