package com.matrix.component.wechat.externalInterface.service; 
 | 
  
 | 
import com.matrix.component.wechat.externalInterface.common.WechatConfigure; 
 | 
import com.matrix.component.wechat.externalInterface.protocol.payComProtocol.JsApiPayComReqData; 
 | 
  
 | 
/** 
 | 
 * User: rizenguo 
 | 
 * Date: 2014/10/29 
 | 
 * Time: 16:04 
 | 
 */ 
 | 
public class JsApiPayComService extends BaseService{ 
 | 
  
 | 
    public JsApiPayComService() throws IllegalAccessException, InstantiationException, ClassNotFoundException { 
 | 
        super(WechatConfigure.COM_PAY_API,WechatConfigure.HttpsRequestClassName2); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 请求支付查询服务 
 | 
     * @param scanPayQueryReqData 这个数据对象里面包含了API要求提交的各种数据字段 
 | 
     * @return API返回的XML数据 
 | 
     * @throws Exception 
 | 
     */ 
 | 
    public String request(JsApiPayComReqData jsApiPayComReqData) throws Exception { 
 | 
  
 | 
        //-------------------------------------------------------------------- 
 | 
        //发送HTTPS的Post请求到API地址 
 | 
        //-------------------------------------------------------------------- 
 | 
        String responseString = sendPost(jsApiPayComReqData); 
 | 
  
 | 
        return responseString; 
 | 
    } 
 | 
  
 | 
  
 | 
} 
 |