檢查授權目錄(微信支付——配置中心)
appid
MCHID
KEYS
配置參數是否正確
appsecrect 配置是否正確(開發者中心)
如果是使用測試鏈接,需要同時指定測試授權目錄,測試賬號,並且需要將支付鏈接發送在公眾號窗口內點開
開發者中心修改授權回調域名
參考:
http://mp.weixin.qq.com/wiki/17/c0f37d5704f0b64713d5d2c37b468d75.html
https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_3
http://www.cnblogs.com/txw1958/p/wxpayv3-jsapi.html
http://www.cnblogs.com/txw1958/p/weixin71-oauth20.html