search

Home  >  Q&A  >  body text

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

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

PHP中文网PHP中文网2786 days ago2162

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-04-17 16:10:35

    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

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 16:10:35

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

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 16:10:35

    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.

    reply
    0
  • Cancelreply