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');
Please sign in to leave a comment.