Webhook new authentication
Apr 15, 2019 8:07 AM
I have a problem with the new authentication method of a webhook.
I have implemented the new authentication in PHP.
I made :
$method = $request->getMethod(); $uri = $request->getUri(); $body = json_encode($request->request->all()); $sha256Key = hash('sha256',$apiKey.$method.$uri.$body);
The sha256 in header is not equal to the sha256 calculate.
I don't understand the difference.
Can you help me ?