Showing
1 changed file
with
16 additions
and
0 deletions
... | @@ -136,4 +136,20 @@ public class UnionPayUtil { | ... | @@ -136,4 +136,20 @@ public class UnionPayUtil { |
136 | } | 136 | } |
137 | } | 137 | } |
138 | 138 | ||
139 | +/* public static void main(String[] args) { | ||
140 | + Map<String, String> params = new HashMap<String, String>(); | ||
141 | + params.put("mid", UnionConstants.MID); | ||
142 | + params.put("tid", UnionConstants.TID); | ||
143 | + params.put("msgType", "bills.refund"); | ||
144 | + params.put("msgSrc", "WWW.TEST.COM"); | ||
145 | + params.put("instMid", "QRPAYDEFAULT"); | ||
146 | + params.put("billNo", "3194201905231441281233453476"); | ||
147 | + params.put("billDate", "2019-05-23"); | ||
148 | + params.put("refundAmount", "1"); | ||
149 | + params.put("requestTimestamp", DateUtil.getNow()); | ||
150 | + params.put("sign", makeSign(params)); | ||
151 | + String result = sendPost("https://qr-test2.chinaums.com/netpay-route-server/api/", params); | ||
152 | + System.out.println(JsonUtil.toJson(result)); | ||
153 | + }*/ | ||
154 | + | ||
139 | } | 155 | } | ... | ... |
-
Please register or login to post a comment