# How to verify Webhook Signature with PHP script

**URL:** <https://community.rapyd.net/t/how-to-verify-webhook-signature-with-php-script/1382>\
**Category:** ⚙️ API\
**Tags:** disburse-api, collect-api\
**Created:** [January 14, 2022, 10:45am UTC](https://community.rapyd.net/t/how-to-verify-webhook-signature-with-php-script/1382 "2022-01-14T10:45:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [January 24, 2022, 6:45pm UTC](https://community.rapyd.net/t/how-to-verify-webhook-signature-with-php-script/1382/4 "2022-01-24T18:45:18Z")

</div>

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:

```auto
$body = array(); // JSON body goes here. Always empty for GET; 
                                     // strip nonfunctional whitespace.
$body_string = json_encode($body);

```

Compared to:

```auto
$body = $request->all();

$bodyString = $body && !is_null($body) ? json_encode($body, JSON_UNESCAPED_SLASHES) : '';

```

---

_[View the full topic](https://community.rapyd.net/t/how-to-verify-webhook-signature-with-php-script/1382)._
