Validating the Signature
To validate the signature, you can use this sample Java code. Make sure to perform JSON escaping on the payload received at the target.
This code includes the payload, signature received, and secret key. You can have similar code in your respective programming language.