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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -