{"action":"created","issue":{"url":"https://api.github.com/repos/overtrue/wechat/issues/138","labels_url":"https://api.github.com/repos/overtrue/wechat/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/overtrue/wechat/issues/138/comments","events_url":"https://api.github.com/repos/overtrue/wechat/issues/138/events","html_url":"https://github.com/overtrue/wechat/issues/138","id":113297555,"number":138,"title":"微信支付相关文档细化","user":{"login":"yangweijie","id":1614114,"avatar_url":"https://avatars.githubusercontent.com/u/1614114?v=3","gravatar_id":"","url":"https://api.github.com/users/yangweijie","html_url":"https://github.com/yangweijie","followers_url":"https://api.github.com/users/yangweijie/followers","following_url":"https://api.github.com/users/yangweijie/following{/other_user}","gists_url":"https://api.github.com/users/yangweijie/gists{/gist_id}","starred_url":"https://api.github.com/users/yangweijie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangweijie/subscriptions","organizations_url":"https://api.github.com/users/yangweijie/orgs","repos_url":"https://api.github.com/users/yangweijie/repos","events_url":"https://api.github.com/users/yangweijie/events{/privacy}","received_events_url":"https://api.github.com/users/yangweijie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-26T07:04:07Z","updated_at":"2015-10-26T08:12:01Z","closed_at":null,"body":"在用你的微信类做微信支付功能，\r\n微信配置商户号和key 总算要到了，然后微信unifiedOrder 返回配置总算 看懂要用 \r\n\r\n\t\t$payment = new Payment($unifiedOrder);\r\n\t\t$payconfig = $payment->getConfig();\r\n\r\n去获取，问题是进入下一步\r\n\r\nwxjs发起支付，总是提示 get_brand_wxpay_request::fail_invalid signature\r\n\r\n网上搜了很多，有的说是支付授权目录不对，有的说是参数大小写顺序之类的。第二个应该可以排除，因为能下单。\r\n\r\n第一个。我的项目是分前后端，前端3demo.sinaapp.com/wxbuy 第二部是 /wxorder 出现按钮，点击支付调回调。\r\n而后端是 3api.sinaapp.com/weixin/wxpayNotify  post方式。 授权目录 设为 3api.sinaapp.com/ 或者3api.sinaapp.com/weixin/ 都没用， 以为是发起支付前的页面地址 3demo.sinaapp.com/ 或者 3demo.sinaapp.com/wxorder/ 都不对。\r\n\r\n不知道如何调试这个签名错误呢？楼主有没有调试微信开发的思路 ，或者放一个测试demo。我发现官方的那个php的demo 就可以访问，也就是里面的商户id 是任意使用的，希望楼主能出个 简单的该支付框架 使用微信支付的demo 给大家填填坑"},"comment":{"url":"https://api.github.com/repos/overtrue/wechat/issues/comments/151056048","html_url":"https://github.com/overtrue/wechat/issues/138#issuecomment-151056048","issue_url":"https://api.github.com/repos/overtrue/wechat/issues/138","id":151056048,"user":{"login":"tianyong90","id":9278461,"avatar_url":"https://avatars.githubusercontent.com/u/9278461?v=3","gravatar_id":"","url":"https://api.github.com/users/tianyong90","html_url":"https://github.com/tianyong90","followers_url":"https://api.github.com/users/tianyong90/followers","following_url":"https://api.github.com/users/tianyong90/following{/other_user}","gists_url":"https://api.github.com/users/tianyong90/gists{/gist_id}","starred_url":"https://api.github.com/users/tianyong90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianyong90/subscriptions","organizations_url":"https://api.github.com/users/tianyong90/orgs","repos_url":"https://api.github.com/users/tianyong90/repos","events_url":"https://api.github.com/users/tianyong90/events{/privacy}","received_events_url":"https://api.github.com/users/tianyong90/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T08:12:01Z","updated_at":"2015-10-26T08:12:01Z","body":"https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=11_1\r\n这里可以下载官方的SDK，里面有签名工具。\r\n支付授权目录就是实际发现支付的地址，您这上面有好几个域名，我看晕了。"}}