Skip to content

Commit

Permalink
Fix usage of SignatureVerification instead of SignatureVerificationEx…
Browse files Browse the repository at this point in the history
…ception
  • Loading branch information
robertmarsal committed Sep 6, 2019
1 parent 1d8261e commit ddd66c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract class Webhook
* timestamp and the current time
* @return Event the Event instance
* @throws Exception\UnexpectedValueException if the payload is not valid JSON,
* @throws Exception\SignatureVerification if the verification fails.
* @throws Exception\SignatureVerificationException if the verification fails.
*/
public static function constructEvent($payload, $sigHeader, $secret, $tolerance = self::DEFAULT_TOLERANCE)
{
Expand Down
4 changes: 2 additions & 2 deletions lib/WebhookSignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ abstract class WebhookSignature

/**
* Verifies the signature header sent by Stripe. Throws an
* Exception\SignatureVerification exception if the verification fails for
* Exception\SignatureVerificationException exception if the verification fails for
* any reason.
*
* @param string $payload the payload sent by Stripe.
Expand All @@ -17,7 +17,7 @@ abstract class WebhookSignature
* @param string $secret secret used to generate the signature.
* @param int $tolerance maximum difference allowed between the header's
* timestamp and the current time
* @throws Exception\SignatureVerification if the verification fails.
* @throws Exception\SignatureVerificationException if the verification fails.
* @return bool
*/
public static function verifyHeader($payload, $header, $secret, $tolerance = null)
Expand Down

0 comments on commit ddd66c4

Please sign in to comment.