> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-60c89f9a-mintlify-audit-missing-sections-1778528421.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Subscribe to Webhooks

> Follow these steps to subscribe to webhook events:

1. Log in to the Dashboard.
2. Navigate to **Account & Settings** → **Webhooks** to subscribe to any of the events mentioned in the following section.

## Webhook Events and Descriptions

## Webhook Events | Description

## `qr_code.created` | Triggered when a QR Code is created.

## `qr_code.credited` | Triggered when a payment is made using a QR Code.

`qr_code.closed` | Triggered when a QR Code is closed.

### Signature Validation

If you need to validate QR Code webhook payloads, please use the following Node.js code:

```nodejs: Node.js theme={null}

const {validateWebhookSignature} = require('razorpay/dist/utils/razorpay-utils')

webhookBodyNew = JSON.stringify(webhookBody).replace(/\//g, "\\/") 

validateWebhookSignature(webhookBodyNew, webhookSignature, webhookSecret)
```

Know more about [Webhooks](/webhooks) and check the [sample payloads](/webhooks/qr-codes).

### Related Information

* [QR Code States](/payments/qr-codes/states)
* [QR Code APIs](/payments/qr-codes/apis)
