Home  >  Article  >  Backend Development  >  微信支付native方式没有收到异步通知

微信支付native方式没有收到异步通知

WBOY
WBOYOriginal
2016-06-06 20:28:261875browse

请教一个问题,就是微信支付的PHP SDK
我想在网页中扫描微信二维码支付,下载了官方的SDK
运行了example 中的native.php
通过模式二来扫码支付

<code>$input->SetNotify_url("http://127.0.0.1/wxpay/example/notify.php”);</code>

但是我发现支付成功了,可是微信没有向我设置的notify发异步请求,请问该如何解决,还是我的逻辑错误?

回复内容:

请教一个问题,就是微信支付的PHP SDK
我想在网页中扫描微信二维码支付,下载了官方的SDK
运行了example 中的native.php
通过模式二来扫码支付

<code>$input->SetNotify_url("http://127.0.0.1/wxpay/example/notify.php”);</code>

但是我发现支付成功了,可是微信没有向我设置的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