How to test webhooks on woocommerce? [closed]

Question

I’m trying to test the webhook in a fresh wocommerce installation but even when i set the async to false the event is not sent to my endpoint.

Disable async notification:

function custom_product_update_webhook() {
    return false;
}
apply_filters( 'woocommerce_webhook_deliver_async', 'custom_product_update_webhook');

I’m using Pipedream to run the tests, when i create a new webhook my endpoint receive the first POST request normally, but if i try to update a product or update a order the “update event” is not sent, i’ve also looked at the logs and there’s no log files to any event, the fields that i tried to update were the name and the price.

How can i test the webhook?

0
RFL 4 months 0 Answers 16 views 0

Leave an answer