Skip to content

Commit

Permalink
fix webhook verification
Browse files Browse the repository at this point in the history
  • Loading branch information
yparitcher committed Nov 26, 2024
1 parent 6b1d440 commit eb5c78d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RingCentral.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ public function deleteWebhook(string $webhookId): Response {
return $this->delete("/subscription/{$webhookId}");
}

public function validateWebhook(Request $request): bool {
return $request->header('Validation-Token') == $this->verification_token;
public function verifyWebhook(Request $request): bool {
return $request->header('verification-token') == $this->verification_token;
}

public function parseWebhookBody(Request $request): Collection {
Expand Down

0 comments on commit eb5c78d

Please sign in to comment.