#kuzma-webhook
1 messages · Page 1 of 1 (latest)
evt_1KTPCoLd5mV3MHWMCBVArlx4
This event has message "No signatures found matching the expected signature for payload"
are you sure you're using the right signing secret? can you share the exact code you use to read the event/check the signature?
Do you mean webhook secret code?
I mean the PHP code you're using that tries to check the signature and returns this error.
This error raises from your library. We are not affecting on the result of this error
yes I know how our library works
I mean, can you share the code for how you read the HTTP POST body that your server receives and then passes that payload to the constructEvent function?
That`s the part of yii2 framework Request
* Returns the raw HTTP request body.
* @return string the request body
*/
public function getRawBody()
{
if ($this->_rawBody === null) {
$this->_rawBody = file_get_contents('php://input');
}
return $this->_rawBody;
}```
and headers to
return $request->getHeaders()->get('stripe-signature');