Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
699 views
in Technique[技术] by (71.8m points)

微信支付开发:调用jsapi时缺少参数total_fee

图片描述如图所示。前端json也检查了很多遍格式没错。jssdk chooseWXPay 和 WeixinJSBridge两种调用方法都试了,一样报错。total_fee又不是直接传递的,签名校验通过并返回success拿到了prepay_id,百思不得其解怎么会在jsapi调用的时候缺少了…goole和百度都没找到有人遇到同样的bug………求救求救


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

在楼主的帮助下,我的问题解决了,这里我把package参数传错了,应该是这样:package:"prepay_id=wx201612032137135b201de80e0666789657",真是一个坑,也怪我粗心


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...