-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bugfix: correct params order in RefundQuery
* bugfix: correct params order in RefundQuery + demog-refund-query.jsp * disabled debugging output for development
- Loading branch information
Showing
3 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<%@ page language="java" pageEncoding="UTF-8" | ||
import=" | ||
java.util.Properties, | ||
com.github.cuter44.wxpay.*, | ||
com.github.cuter44.wxpay.reqs.*, | ||
com.github.cuter44.wxpay.resps.* | ||
" | ||
%> | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
</head> | ||
|
||
<body> | ||
<h1>微信退款查询样例</h1> | ||
|
||
↓ 输入单号可以查看退款记录, 单号可以在微信客户端的 我↘ > 钱包 > ┇↗ > 交易消息 > (其中的某一条) > 支付信息 > 商户单号 找到. | ||
<br /> | ||
当然, 只能查到对应此公众号的交易信息. | ||
|
||
<p /> | ||
|
||
<form id="form" enctype="application/x-www-form-urlencoded"> | ||
<table> | ||
<tr><td>out_trade_no</td><td><input name="outTradeNo"/></td></tr> | ||
<tr><td></td><td><input type="submit"></td></tr> | ||
</table> | ||
</form> | ||
|
||
<p /> | ||
|
||
<dl> | ||
|
||
<% | ||
String outTradeNo = request.getParameter("outTradeNo"); | ||
if (outTradeNo != null) | ||
{ | ||
WxpayFactory factory = WxpayFactory.getDefaultInstance(); | ||
RefundQuery wxreq = new RefundQuery(factory.getConf()); | ||
wxreq.setOutTradeNo(outTradeNo); | ||
RefundQueryResponse wxresp = wxreq.build().sign().execute(); | ||
Properties prop = wxresp.getProperties(); | ||
System.out.println(prop); | ||
for (Object k:prop.keySet()) | ||
{ | ||
%> | ||
<dt><%=k%> | ||
<dd><%=prop.get(k)%> | ||
<% | ||
} | ||
} | ||
%> | ||
|
||
</dl> | ||
|
||
</body> | ||
</html> |