> For the complete documentation index, see [llms.txt](https://docs.norrnext.com/stripe-for-virtuemart/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.norrnext.com/stripe-for-virtuemart/stripe-configuration/webhooks.md).

# 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 VirtueMart payment method settings. [Read more](https://docs.norrnext.com/stripe-for-virtuemart/virtuemart-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-virtuemart) and [Stripe Checkout](https://norrnext.com/ecommerce/stripe-checkout-for-virtuemart) use 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.norrnext.com/stripe-for-virtuemart/stripe-configuration/webhooks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
