<commit_before>## payment verification

```js
var { validatePaymentVerification } = require('./dist/utils/razorpay-utils');
```

### Verify payment verification

```js
validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret);
```

**Parameters:**


| Name  | Type      | Description                                      |
|-------|-----------|--------------------------------------------------|
| orderId*  | string | The id of the order to be fetched  |
| paymentId*    | string | The id of the payment to be fetched |
| signature* | string   | Signature returned by the Checkout. This is used to verify the payment. |
| secret* | string   | your api secret as secret |

-------------------------------------------------------------------------------------------------------
### Verify subsciption verification

```js
validatePaymentVerification({"subscription_i": subscriptionId, "payment_id": razorpayPaymentId }, signature, secret)
```

**Parameters:**


| Name  | Type      | Description                                      |
|-------|-----------|--------------------------------------------------|
| subscriptionId*  | string | The id of the subscription to be fetched  |
| paymentId*    | string | The id of the payment to be fetched |
| signature* | string   | Signature returned by the Checkout. This is used to verify the payment. |
| secret* | string   | your api secret as secret |

-------------------------------------------------------------------------------------------------------
### Verify paymentlink verification

```js
verifyPaymentSignature({
  "razorpay_payment_link_id": razorpayPaymentlinkId,
  "razorpay_payment_id": razorpayPaymentId,
  "razorpay_payment_link_reference_id": razorpayPaymentLinkReferenceId,
  "razorpay_payment_link_status": razorpayPaymentLinkStatus,
}, signature , secret);
```<commit_msg>spelling mistake correction<commit_after>## payment verification

```js
var { validatePaymentVerification } = require('./dist/utils/razorpay-utils');
```

### Verify payment verification

```js
validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret);
```

**Parameters:**


| Name  | Type      | Description                                      |
|-------|-----------|--------------------------------------------------|
| orderId*  | string | The id of the order to be fetched  |
| paymentId*    | string | The id of the payment to be fetched |
| signature* | string   | Signature returned by the Checkout. This is used to verify the payment. |
| secret* | string   | your api secret as secret |

-------------------------------------------------------------------------------------------------------
### Verify subscription verification

```js
validatePaymentVerification({"subscription_i": subscriptionId, "payment_id": razorpayPaymentId }, signature, secret)
```

**Parameters:**


| Name  | Type      | Description                                      |
|-------|-----------|--------------------------------------------------|
| subscriptionId*  | string | The id of the subscription to be fetched  |
| paymentId*    | string | The id of the payment to be fetched |
| signature* | string   | Signature returned by the Checkout. This is used to verify the payment. |
| secret* | string   | your api secret as secret |

-------------------------------------------------------------------------------------------------------
### Verify paymentlink verification

```js
verifyPaymentSignature({
  "razorpay_payment_link_id": razorpayPaymentlinkId,
  "razorpay_payment_id": razorpayPaymentId,
  "razorpay_payment_link_reference_id": razorpayPaymentLinkReferenceId,
  "razorpay_payment_link_status": razorpayPaymentLinkStatus,
}, signature , secret);
```
{'fraction_non_alphanumeric': 0.2700710713345617, 'fraction_numerical': 0.0, 'mean_word_length': 1.8507126781695424, 'pattern_counts': {'":': 16, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1661975', 'n_tokens_mistral': 909, 'n_tokens_neox': 865, 'n_words': 266}