How to give back in WeChat Pay's successful callback

in Wechat"s payment callback, after I successfully processed it, I directly
return "success"
Wechat reported an error

error example:
transaction_id=4200000217201810305986075380] > < / return_code > < return_msg > < / return_msg > < / xml >]

I change it to xml format and return

return sprintf ("< xml > < return_code > < / return_code > < return_msg > < / return_msg > < / xml >");

Wechat still reported an error

transaction_id=4200000221201810316667479789] > < / return_code > < return_msg > < return_code > < / return_code > < return_msg > < / return_msg > < / xml >]] > < / return_msg > < / xml >]
how to solve


does your framework format your output based on your output and modify your output?

add a exit; to try this:

echo <<<XML
<xml>
    <return_code><![CDATA[SUCCESS]]></return_code>
    <return_msg><![CDATA[OK]]></return_msg>
</xml>
XML
;
exit;

return parameters
clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c049a2-55366.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c049a2-55366.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?