前端 - 微信支付开发:调用jsapi时缺少参数total_fee
PHP中文网
PHP中文网 2017-04-17 16:08:35
0
3
2189

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

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
小葫芦

With the help of the original poster, my problem was solved. Here I passed the wrong package parameter, it should be like this: package:"prepay_id=wx201612032137135b201de80e0666789657", it’s really a trap, it’s my fault for being careless

巴扎黑

Has the poster’s problem been solved? I also have this error message, please help

左手右手慢动作

I have this problem too. Haven't climbed out yet. Hey...

Climbed out today. After being reminded by the WeChat payment staff, I directly tested it in the official environment, and the payment with the same code was successful.

Don’t use their SANDBOX development environment. It’s really a sand pit. It wasted a lot of my time and once made me doubt my programming ability.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template