Home  >  Article  >  Backend Development  >  WeChat payment is successful but the callback function does not respond

WeChat payment is successful but the callback function does not respond

WBOY
WBOYOriginal
2016-12-01 00:25:263022browse

Request from all the masters

The callback address is written like this:

<code>  $input->SetNotify_url("http://adbangbang.com/scanpay_callback");
</code>

The return data attempted to be printed in the controller:
$postdata = file_get_contents("php://input");

<code>$disk = Storage::disk('wxpay');
$contents = $disk->append('wxpay.txt',' ');

但是没有任何数据 </code>

Reply content:

Request from all the masters

The callback address is written like this:

<code>  $input->SetNotify_url("http://adbangbang.com/scanpay_callback");
</code>

The return data attempted to be printed in the controller:
$postdata = file_get_contents("php://input");

<code>$disk = Storage::disk('wxpay');
$contents = $disk->append('wxpay.txt',' ');

但是没有任何数据 </code>

You can log at the entrance first to see if you have received a callback

For others, check out this blog
http://blog.csdn.net/qq_28018...

It has been solved. It is the GET of routing settings... Just use ANY. Thank you

Brother, you use easywechat for WeChat payment

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