# Webhooks

Proceed to Stripe Dashboard > Developers > [Webhooks](https://dashboard.stripe.com/account/webhooks), then click on **Add Endpoint** button.

<figure><img src="https://norrnext.com/images/docs/stripe-endpoint1.png" alt="Add Endpoint in Stripe dashboard"><figcaption><p>Add Endpoint in Stripe dashboard</p></figcaption></figure>

* Endpoint URL: the URL can be taken from Phoca Cart payment method settings. [Read more](https://docs.norrnext.com/stripe-for-phoca-cart/phoca-cart-configuration#api-keys).

<figure><img src="https://norrnext.com/images/docs/stripe-endpoint2.png" alt="Add Endpoint URL and select events"><figcaption><p>Add Endpoint URL and select events</p></figcaption></figure>

{% hint style="danger" %}
&#x20;[Stripe](https://norrnext.com/ecommerce/stripe-for-phoca-cart) and [Stripe Checkout](https://norrnext.com/ecommerce/stripe-checkout-for-phoca-cart) uses different events. Please be careful and make sure which plugin's edition is in use before events will be added!
{% endhint %}

Then please select the following events if you use **Stripe plugin**:

`payment_intent.canceled`\
`payment_intent.payment_failed`\
`payment_intent.succeeded`\
`charge.refunded`

Then please select the following events if you use **Stripe Checkout plugin**:

`checkout.session.completed`\
`checkout.session.async_payment_succeeded`\
`checkout.session.async_payment_failed`\
`charge.refunded`<br>

The same events in table:

| Stripe plugin:                  | Stripe Checkout plugin:                    |
| ------------------------------- | ------------------------------------------ |
| `payment_intent.canceled`       | `checkout.session.completed`               |
| `payment_intent.payment_failed` | `checkout.session.async_payment_succeeded` |
| `payment_intent.succeeded`      | `checkout.session.async_payment_failed`    |
| `charge.refunded`               | `charge.refunded`                          |


---

# 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.norrnext.com/stripe-for-phoca-cart/stripe-configuration/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.
