# Webhooks

<details>

<summary><strong>Why are webhooks important and where can the merchant read more on this?</strong></summary>

* Ensure that orders are updated even if the customer abandons the Hosted Payment Page (HPP).
* Synchronize orders with Verifone Central so that any modification done on Verifone is reflected in WooCommerce as well (**e.g.**: refunds performed on Verifone Central).

</details>

&#x20;More on webhooks can be found [here](/verifone-central-getting-started/verifone-central/administration-tools/notifications-and-webhooks.md).

To set up webhooks for the cart events, follow these steps:

1. Go to *WooCommerce* → *Settings* and click on the **Payments** tab.
2. Copy the URL below from the **Payments** tab.

   <div data-with-frame="true"><img src="https://verifone.cloud/sites/default/files/inline-images/woocommerce%20add%20webhook%20new.png" alt=""></div>
3. Create the notification, as per the [Notifications](/verifone-central-getting-started/verifone-central/administration-tools/notifications-and-webhooks.md) documentation. On the **Create Notification** page, provide the following information:
   * **Notification name** – Assign a name to label the purpose of your webhook.
   * **Organization(s)** – Select the Merchant Site organization setup with your plugin.
   * **Event types** – Select two events:

     * **Checkout – Transaction succeeded** and&#x20;
     * **Checkout – Transaction failed**

     <div data-with-frame="true"><img src="https://verifone.cloud/sites/default/files/inline-images/1_150.JPG" alt="" height="105" width="456"></div>
   * **Delivery Method** – Select **URL Endpoint** and paste the URL copied from step 2.
   * **Webhook type** – Select **Event metadata only**.<br>

     <div data-with-frame="true"><figure><img src="https://verifone.cloud/sites/default/files/inline-images/2_106.JPG" alt="" width="375"><figcaption></figcaption></figure></div>
4. Click **Save** to register the webhook and to update your settings.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.verifone.com/online-payments/plugins/woocommerce-plugin-integration/webhooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
