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

QQ登录

只需一步,快速开始

查看: 2814|回复: 0

[未处理] 微信支付返回的prepayId是什么ID

[复制链接]

22

主题

101

帖子

315

积分

中级会员

Rank: 3Rank: 3

积分
315
QQ
发表于 2018-12-12 21:32:36 | 显示全部楼层 |阅读模式
var weixin = navigator.weixin;
                weixin.generatePrepayId({ // 生成预支付id
                        "body" : "管家",
                        "feeType" : "1",
                        "notifyUrl" : notifyUrl,
                        "totalFee" : totalFee*100,//总金额(单位分)
                        "traceId" : traceID,
                        "tradeNo" : tradeNo
                }, function(prepayId) {
                        //alert("prepayId:"+prepayId);
                        weixin.sendPayReq(prepayId, function(message) { // 支付                               
                                var responseCode = parseInt(message);                               
                                //alert("message:"+message);
                                if (responseCode === 0) {
                                        //支付成功
                                        successCallback(prepayId);
                                }
                                if (responseCode === -1) {
                                        //失败。
                                        failCallback(prepayId);
                                }
                                if (responseCode === -2) {
                                        //取消
                                        cancelCallback(prepayId);
                                }                               
                        }, function(message) {
                                cancelCallback(prepayId);
                        });
                }, function(message) {
                        //alert("messagefail:"+message);
                        failCallback(message);
                });




微信支付返回的prepayId是:wx110021064329592d55ea36302771960721

微信的交易订单号:4200000211201812114833130979

微信的商户单号:C84019EEA3700001EE4017F02CECB8E0

这怎么对账啊

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

本版积分规则

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

GMT+8, 2024-5-7 08:14 , Processed in 0.102779 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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