|
调用微信内支付,执行chooseWXPay 后
在WxMpJsApiServlet.java 中 prepayOrder.getAppId() 输出是NULL 是什么原因啊?
private void chooseWXPay(HttpServletRequest req, HttpServletResponse resp) throws IOException{
WxJsapiPrepayOrder prepayOrder = this.getPrepayOrder(req);
Map<String,String> payReq = new HashMap<String,String>();
System.out.println("pay:ID:"+prepayOrder.getAppId()); 输出NULL
调用过程
this.wxApi = new navigator.WxApi("wx33ad9c99d55ec512");
var tradeNo = orderID;
var notifyUrl = location.origin + "/baas/weixin/notify";
//alert("this.wxApi.getAppId()"+this.wxApi );
this.wxApi.chooseWXPay({
body : "美佳美互测试",
mchId : "1303628401",
notifyUrl : notifyUrl,
outTradeNo : tradeNo,
totalFee : "1"
}).done(function() {
payDtd.resolve(2);
}).fail(function() {
payDtd.reject(-20);
}); |
|