# Unable to verify webhook signature (NodeJS)

**URL:** <https://community.rapyd.net/t/unable-to-verify-webhook-signature-nodejs/57524>\
**Category:** ⚙️ API\
**Tags:** collect-api, payments\
**Created:** [September 21, 2022, 12:38pm UTC](https://community.rapyd.net/t/unable-to-verify-webhook-signature-nodejs/57524 "2022-09-21T12:38:30Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)\
**Post date:** [September 21, 2022, 11:03pm UTC](https://community.rapyd.net/t/unable-to-verify-webhook-signature-nodejs/57524/8 "2022-09-21T23:03:57Z")

</div>

Thanks for asking @eni4sure, and thanks for your help @Benrobo.

I would definitely reach out to support.

In the meantime you can view some of these past topics about correcting the body string of the signature request to match the webhook.

> [@How to verify Webhook Signature with PHP script](https://community.rapyd.net/t/how-to-verify-webhook-signature-with-php-script/1382/4):
>
> Thanks @Ha_Tr_n, how’s it going? Have you tried using the [Request Signatures](https://docs.rapyd.net/build-with-rapyd/reference/message-security#request-signatures) example: $body = array(); // JSON body goes here. Always empty for GET; // strip nonfunctional whitespace. $body\_string = json\_encode($body); Compared to: $body = $request-\>all(); $bodyString = $body && !is\_null($body) ? json\_encode($body, JSON\_UNESCAPED\_SLASHES) : '';

> [@Verify Webhook Signature?](https://community.rapyd.net/t/verify-webhook-signature/1383):
>
> Hello everyone! I have a question related Rapyd webhook. I want to verify the signature get from webhook. I am PHP Developer and this is my code: \<?php $access\_key = 'access-key'; // get from Dashboard $secret\_key = 'secret-key'; // get from Dashboard $salt = 'epiAT7douEg/9ezxZzoByA=='; // get from webhook header $timestamp = 1642058448; // get from webhook header $signature\_from\_webhook = 'base-64-value'; // get from webhook header // Data from payment hook https://docs.rapyd.net/build-with…

---

_[View the full topic](https://community.rapyd.net/t/unable-to-verify-webhook-signature-nodejs/57524)._
