• jenskirk

    (@jenskirk)


    Hi ??

    How do I catch the orderID (order number) of a webhook call from WooCommerce?

    I have created a webhook of the type “order.created” but outputting it via:
    print_r($_POST);

    Just gives:
    Array ( )

    And I cannot see that I can insert GET submit values into Delivery URL of the webhook.

    So what to do in order to know what orderID the webhook call was about.

    • This topic was modified 8 years ago by jenskirk.
Viewing 1 replies (of 1 total)
  • Thread Starter jenskirk

    (@jenskirk)

    UPDATE:

    Solved it with this:

    $entityBody = file_get_contents('php://input');
    print_r($entityBody);
Viewing 1 replies (of 1 total)
  • The topic ‘Fetch order ID from webhook call?’ is closed to new replies.