admin 管理员组文章数量: 1184232
2024年3月29日发(作者:openssl是美国的吗)
public String orderQueryRequest(String transactionID, String outTradeNo
)
{
// 构造HTTP请求
HttpClient httpclient = new HttpClient();
PostMethod postMethod = new PostMethod(_QUERY_API);
PayQueryReqData wxdata = new PayQueryReqData(transactionID,outTradeNo);
String requestStr="";
requestStr=tObj2Xml(wxdata);
// 发送请求
String strResponse = null;
try {
RequestEntity entity = new StringRequestEntity(
ng(), "text/xml", "UTF-8");
uestEntity(entity);
eMethod(postMethod);
strResponse = new String(ponseBody(), "utf-8");
} catch (HttpException e) {
ger(getClass()).error("orderQueryRequest", e);
} catch (IOException e) {
ger(getClass()).error("orderQueryRequest", e);
} finally {
eConnection();
}
return strResponse;
}
}
版权声明:本文标题:微信支付(java版本)_支付结果通知 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1711698185a606211.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论