|
我在集成公众号的微信支付功能遇到个问题:在发起支付后,系统无任何反应和错误提示,通过微信web开发者工具看到控制台有错误的log:{"errMsg":"getUserInfo:fail","resultStr":"\"no code\""}
请问哪位知道这问题要如何解决?
参考文章:http://doc.wex5.com/pay-mp-step-by-step
已修改了config.json文件,并返回配置成功的打印:output {"errMsg":"configk"}
{
"debug" : true,
"wxAppId" : "xxxx",
"wxJSApiUrl" : "/baas/weixin/weixin/jsapi",
"wxUserInfoUrl" : "/baas/weixin/weixin/userinfo",
"uploadActionUrl" : "$UI/system/service/doc/common/simpleFileStore.j"
}
Model.prototype.buyBtnClick = function(event){
var wxPay = require('$UI/system/api/native/wxPay');
var tradeNo = justep.UUID.createUUID();
var notifyUrl = location.origin + "/baas/weixin/weixin/notify";
wxPay.pay({
body : "售票系统",
mchId : "xxxxxx",
notifyUrl : notifyUrl,
outTradeNo : tradeNo,
totalFee : "1",
success : function(e) {
alert(JSON.stringify(e));
},
cancel : function(e) {
alert(JSON.stringify(e));
},
fail : function(e) {
alert(JSON.stringify(e));
}
});
|
|