|
微信支付 返回错误消息:FAIL,我的写法如下,是不是我哪个参数入错了呀?traceID入什么数据?谢谢大师指教~~~~
function goCordovaBuy(){
var notifyUrl = "http://www.bex5.com";
var traceID = '111';
var traceNo = payID;//订单ID
var weixin = navigator.weixin;
weixin.generatePrepayId({
"body" : "x5外卖",
"feeType" : "1",
"notifyUrl" : notifyUrl,
"totalFee" : "1",
"traceId" : traceID,
"tradeNo" : traceNo
}, function(prepayId) {
alert(prepayId);
weixin.sendPayReq(prepayId, function(message) {
var responseCode = parseInt(message);
alert(responseCode);
}, function(message) {
alert(message);
});
}, function(message) {
alert(message);
});
} |
|