java - 微信公众号支付成功, 但是notify_url无法收到回调?
巴扎黑
巴扎黑 2017-04-18 10:15:39
0
4
856

支付成功,但是notify_url没有反应, 没有带参数。

抱怨下, 微信的文档写的真差。


谢谢各位, 其实回调是有收到的, 但是同事的代码写的太烂, 报错没反应的。 问题已经解决了。

巴扎黑
巴扎黑

reply all(4)
Ty80
  1. Make sure the URL is correct

  2. Make sure the URL directory is authorized (set in the WeChat background)

小葫芦

If you do this, write a statement to insert into the database directly in the notification file
$xml = $GLOBALS['HTTP_RAW_POST_DATA'];

Insert these data into the database and see if it doesn’t go in, which means there is something wrong with the address.
You pay for the test
If your notification address is correct, there will be 8 notifications after payment

大家讲道理

The documentation is pretty good, check out the logs

大家讲道理

There seem to be two types, one that will send notifications, and one that requires you to actively check without sending notifications.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!