Skip to content

Commit d837f69

Browse files
committed
return boolean
1 parent 248e18f commit d837f69

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/Exceptions/InvalidSignatureException.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/Thepeer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Thepeer\Sdk\Exceptions\InvalidPayloadException;
99
use Thepeer\Sdk\Exceptions\InvalidReceiptException;
1010
use Thepeer\Sdk\Exceptions\InvalidSecretKeyException;
11-
use Thepeer\Sdk\Exceptions\InvalidSignatureException;
1211
use Thepeer\Sdk\Exceptions\SeverErrorException;
1312
use Thepeer\Sdk\Exceptions\UserNotFoundException;
1413

@@ -52,7 +51,7 @@ public function validateSignature(Request $payload)
5251
return true;
5352
}
5453

55-
throw new InvalidSignatureException("signature does not match");
54+
return false;
5655
}
5756

5857
public function getReceipt($receipt)

0 commit comments

Comments
 (0)