# 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`                          |
