Home  >  Article  >  Backend Development  >  微信公众号支付成功后,支付成功通知接口,应当返回什么?

微信公众号支付成功后,支付成功通知接口,应当返回什么?

WBOY
WBOYOriginal
2016-06-06 20:08:381364browse

微信不停地访问设置的notify_url,应当返回什么才能让他停止?
试过echo 'SUCCESS';了但是不行,用扫码支付的时候这样返回可以停止,但是公众号里支付好像不行,也试过直接
echo '<xml><return_code></return_code><return_msg></return_msg></xml>';
也还是不行……到底应该怎么返回?求指导……

回复内容:

微信不停地访问设置的notify_url,应当返回什么才能让他停止?
试过echo 'SUCCESS';了但是不行,用扫码支付的时候这样返回可以停止,但是公众号里支付好像不行,也试过直接
echo '<xml><return_code></return_code><return_msg></return_msg></xml>';
也还是不行……到底应该怎么返回?求指导……

正确答案是echo 'SUCCESS';之前是我自己的错误……写在这里,希望以后有人能看到

麻烦你需要看清楚支付文档的, 文档清楚写明为了确保成功送达消息给开发者, 会多次调用notify 的地址的。这个需要你开发者处理这问题的,你可以修改一次支付状态就可以, 需要在notify 判断一次的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn