Home  >  Article  >  Backend Development  >  Regarding the callback issue in WeChat scan code payment mode 2

Regarding the callback issue in WeChat scan code payment mode 2

WBOY
WBOYOriginal
2016-09-08 08:43:531045browse

Regarding the callback issue in WeChat scan code payment mode 2Regarding the callback issue in WeChat scan code payment mode 2Regarding the callback issue in WeChat scan code payment mode 2

The callback address I set on line 49 doesn’t feel like it’s gone. They all say log. I don’t know where to log. Could you please guide me? Also, when it comes to the callback page, I also want to do something about the database. Operation, how to do it well

Reply content:

Regarding the callback issue in WeChat scan code payment mode 2Regarding the callback issue in WeChat scan code payment mode 2Regarding the callback issue in WeChat scan code payment mode 2

The callback address I set on line 49 doesn’t feel like it has passed. They all say log. I don’t know where to log. Please give me some guidance. Also, when it comes to the callback page, I also want to do something about the database. Operation, how to do it well

Print $input $result to see what errors are returned here, or whether it is successful, and then receive the returned xml data in notify.php file_get_contents('php://input'); and then write the data into a log or txt file, no matter how you operate the database, it is your logic

If your address is sure to be OK, then confirm the WeChat settings.
Regarding the callback issue in WeChat scan code payment mode 2
Set the authorization directory above

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