起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1328|回复: 1

[处理中3] 调用微信支付的时候提示微信支付失败、参数什么的都配.....

[复制链接]

7

主题

27

帖子

81

积分

初级会员

Rank: 2

积分
81
QQ
发表于 2017-6-23 11:38:46 | 显示全部楼层 |阅读模式
我在调用微信的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
发表于 2017-6-23 13:51:11 | 显示全部楼层
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2025-7-5 22:21 , Processed in 0.068779 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表