php - Catch Http POST Requests from WooCommerce /WebHooks -
i have woocommerce website , testwebsite.com/test.php catch request webhook. display json data sent webhook on test website. works fine on woocommerce website, looking hours , tried lots of code , still got nothing. solution can in php or nodejs.
please thank in advance
thanks passed by, found solution here how read data sent webhooks? looking it
$webhookcontent = ""; $webhook = fopen('php://input' , 'rb'); while (!feof($webhook)) { $webhookcontent .= fread($webhook, 4096); } fclose($webhook); mail('mail@yourdomain.com', 'test - hook', $webhookcontent);
Comments
Post a Comment