标签:cimage stack res time his open put imp success
上一节我们已经拿到了下单返回的code_url,这一节我们将生成二维码以完成支付。
完成下单
https://www.jianshu.com/p/9a3d972aeb6d
<%--
Created by IntelliJ IDEA.
User: zhangli
Date: 2019/4/21
Time: 9:03
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>$Title$</title>
</head>
<body>
<img id="qrious" />
</body>
<script src="qrious.min.js"></script>
<script>
var qr = new QRious({
element:document.getElementById('qrious'),
size:250, level:'H', value:'weixin://wxpay/bizpayurl?pr=Nklt0xv'
});
</script>
</html>
import com.github.wxpay.sdk.MyConfig;
import com.github.wxpay.sdk.WXPay;
import java.util.HashMap;
import java.util.Map;
public class OrderqueryTest {
public static void main(String[] args) throws Exception {
MyConfig config = new MyConfig();
WXPay wxpay = new WXPay(config);
Map<String, String> data = new HashMap<String, String>();
data.put("out_trade_no", "2019102410595900000013");
try {
Map<String, String> resp = wxpay.orderQuery(data);
System.out.println(resp);
} catch (Exception e) {
e.printStackTrace();
}
}
}
{
transaction_id=4200000414201910245387062328,
nonce_str=kk1sIyBsgUxB8Hb7,
trade_state=SUCCESS,
bank_type=CMB_CREDIT,
openid=oC0TH1CCVcr2iG5bu07Iyx1MuLVY, sign=8654FDF1FE0DA660217CDE2317330D88EF29A5BC72DF81CD39E3F5200E7ACA10, return_msg=OK,
fee_type=CNY,
mch_id=1533074101,
cash_fee=1,
out_trade_no=2019102410595900000013,
cash_fee_type=CNY,
appid=wx35757b8dde0f2a78,
total_fee=1,
trade_state_desc=支付成功,
trade_type=NATIVE,
result_code=SUCCESS,
attach=,
time_end=20191024113541,
is_subscribe=Y,
return_code=SUCCESS
}
有以上询单结果可知,订单号为“2019102410595900000013”的下单已经完成支付。
以上就是生成二维码、完成支付后在询单的过程。
标签:cimage stack res time his open put imp success
原文地址:https://www.cnblogs.com/alichengxuyuan/p/12503544.html