Home  >  Q&A  >  body text

java - 微信公众号支付成功, 但是notify_url无法收到回调?

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

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


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

巴扎黑巴扎黑2764 days ago904

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:17:39

    1. Make sure the URL is correct

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

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 10:17:39

    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

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:17:39

    The documentation is pretty good, check out the logs

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:17:39

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

    reply
    0
  • Cancelreply