|
我在调用微信的app支付,发现支付的时候微信支付失败。该引用的东西都引用了。一下是代码:
var notifyUrl = utils.HOST + "bookscanbuildingController/doReturnForWeiXin.do";
// var notifyUrl = location.origin;
var traceID = justep.UUID.createUUID();
var traceNo = orderID;
var weixin = navigator.weixin;
weixin.generatePrepayId({
"body" : "下定金额",
"feeType" : "1",
"notifyUrl" : notifyUrl,
"totalFee" : "1",
"traceId" : traceID,
"tradeNo" : traceNo
}, function(prepayId) {
weixin.sendPayReq(prepayId, function(message) {
var responseCode = parseInt(message);
if (responseCode === 0) {
} else if (!isNaN(responseCode)) {
} else {
}
}, function(message) {
alert('1');
justep.Util.hint("微信支付失败!");
});
}, function(message) {
alert('2');
justep.Util.hint("微信支付失败!");
});
每次都是弹出alert(2);请问各位大大这是为什么?我用的是正式版的3.6
|
|