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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -