Skip to content

Commit

Permalink
return boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
ichtrojan committed May 24, 2021
1 parent 248e18f commit d837f69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
10 changes: 0 additions & 10 deletions src/Exceptions/InvalidSignatureException.php

This file was deleted.

3 changes: 1 addition & 2 deletions src/Thepeer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Thepeer\Sdk\Exceptions\InvalidPayloadException;
use Thepeer\Sdk\Exceptions\InvalidReceiptException;
use Thepeer\Sdk\Exceptions\InvalidSecretKeyException;
use Thepeer\Sdk\Exceptions\InvalidSignatureException;
use Thepeer\Sdk\Exceptions\SeverErrorException;
use Thepeer\Sdk\Exceptions\UserNotFoundException;

Expand Down Expand Up @@ -52,7 +51,7 @@ public function validateSignature(Request $payload)
return true;
}

throw new InvalidSignatureException("signature does not match");
return false;
}

public function getReceipt($receipt)
Expand Down

0 comments on commit d837f69

Please sign in to comment.