How to check data sent to a web hook
To view the JSON data which is sent to a web hook. Eg for new sale, or when editing a sale and more.
Get the web hook file to write the JSON data to a file for testing and working with later.
$jsonStr = file_get_contents("php://input");
// $json = json_decode($jsonStr);
$file_handle = fopen('my_jsonfile.json', 'w');
fwrite($file_handle, $jsonStr);
fclose($file_handle);
Comments
0 comments
Please sign in to leave a comment.