Issue with Webhook Validation

I am using following Laravel code to check webhook validation. But I unable to validate it, everytime it’s showing “URL validation failed. Try again later.”

if ($request->event === ‘endpoint.url_validation’) {
$hashForValidate = hash_hmac(‘sha256’, $request->payload[‘plainToken’], env(‘ZOOM_WEBHOOK_SECRET_TOKEN’));

    $response = [
        'message' => [
            'plainToken' => $request->payload['plainToken'],
            'encryptedToken' => $hashForValidate,
        ],
        'status' => 200,
    ];

    logger()->info($response['message']);

    return response()->json($response['message'], $response['status']);
}

Hi @ksarkar
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!
Have you been able to troubleshoot this issue?
Here is a link to our sample app on github for the Webhook implementation:

Hope this helps,
elisa

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.