微信公眾號支付調用支付jsapi缺少參數

發布 微信開發 2105

<!DOCTYPE HTML>


    <html>


    <script language="javascript">


        function callpay() {


            WeixinJSBridge.invoke(


                    'getBrandWCPayRequest', {


                        "appId": "wx2421b1c4370ec43b",     //公眾號名稱,由商戶傳入


                        "timeStamp": "1395712654"+"",         //時間戳,自1970年以來的秒數


                        "nonceStr": "e61463f8efa94090b1f366cccfbbb444", //隨機串


                        "package": "prepay_id=u802345jgfjsdfgsdg888",


                        "signType": "MD5",         //微信簽名方式:


                        "paySign": "70EA570631E4BB79628FBCA90534C63FF7FADD89" //微信簽名


                    },


                    function (res) {


                        alert(res.err_code + res.err_desc + res.err_msg);


                    }


            );


        }


    


    


        if (typeof WeixinJSBridge == "undefined") {


            if (document.addEventListener) {


                document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);


            } else if (document.attachEvent) {


                document.attachEvent('WeixinJSBridgeReady', onBridgeReady);


                document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);


            }


        } else {


            onBridgeReady();


        }


    </script>


    


    


    <body>


    


    


    <button type="button" onclick="callpay()">wx pay test</button>


    


    


    </body>


    


    


    </html>


    


    


    


    以上是代碼,調用支付jsapi缺少參數: $key0$

    


    

    


    

    

    


    

    

    


    

    


    


    


        


  •     

        


  •     


  •     

        


  •     


  •     

        


  •     


    


     黑龙江36选7结果查询

    

請問是什么原因引起的