Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信回调URL回调不到 #170

Closed
zhoujia123 opened this issue Dec 7, 2015 · 8 comments
Closed

微信回调URL回调不到 #170

zhoujia123 opened this issue Dec 7, 2015 · 8 comments

Comments

@zhoujia123
Copy link

http://www.xxxx.com/wx/notify 这类的URL不能回调到?

@overtrue
Copy link
Collaborator

overtrue commented Dec 7, 2015

@zhoujia123 肯定能啊

@zhoujia123
Copy link
Author

我发起扫码支付URL 为http://www.xxxx.com/wx/webchat 设置回调URL:http://www.xxxx.com/wx/notify

Route::group(['namespace' => 'Webchat','prefix' => 'wx'],function(){

    Route::get('webchat','WebchatController@webPayOrder');

Route::any('notify','NotifyController@notify');

});

去掉了VerifyCsrfToken.php 中间件 为什么微信就是调用不过来?

@tianyong90
Copy link
Contributor

1、直接在浏览器里用这个url访问下看能不能到。
2、然后就是订单中参数确认无误。
3、最后就是支付成功了才有回调。

@overtrue
Copy link
Collaborator

overtrue commented Dec 7, 2015

  1. 域名需要在微信后台填写安全域名
  2. 只能调用同域
  3. 域名不能为本地如localhost等

@zhoujia123
Copy link
Author

域名已经在微信开发中心填写安全域名,支付能正常支付,域名是正常的一级域名,设置的也是同域地址

@zhoujia123
Copy link
Author

浏览器访问也能正常返回xml格式数据
<return_code></return_code><return_msg></return_msg>

@tianyong90
Copy link
Contributor

记日志吧……

@zhoujia123
Copy link
Author

通过记录详细的日志发现,数据解析出错了,现在正在排查,谢谢各位大神的指导!

@overtrue overtrue closed this as completed Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants