PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.4
Booking for Appointments and Events Calendar – Amelia v2.4.4
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / stripe / stripe-php / lib / Exception / SignatureVerificationException.php
ameliabooking / vendor / stripe / stripe-php / lib / Exception Last commit date
OAuth 6 months ago ApiConnectionException.php 6 months ago ApiErrorException.php 6 months ago AuthenticationException.php 6 months ago BadMethodCallException.php 6 months ago CardException.php 6 months ago ExceptionInterface.php 6 months ago IdempotencyException.php 6 months ago InvalidArgumentException.php 6 months ago InvalidRequestException.php 6 months ago PermissionException.php 6 months ago RateLimitException.php 6 months ago SignatureVerificationException.php 6 months ago TemporarySessionExpiredException.php 6 months ago UnexpectedValueException.php 6 months ago UnknownApiErrorException.php 6 months ago
SignatureVerificationException.php
75 lines
1 <?php
2
3 namespace AmeliaVendor\Stripe\Exception;
4
5 /**
6 * SignatureVerificationException is thrown when the signature verification for
7 * a webhook fails.
8 */
9 class SignatureVerificationException extends \Exception implements ExceptionInterface
10 {
11 protected $httpBody;
12 protected $sigHeader;
13
14 /**
15 * Creates a new SignatureVerificationException exception.
16 *
17 * @param string $message the exception message
18 * @param null|string $httpBody the HTTP body as a string
19 * @param null|string $sigHeader the `Stripe-Signature` HTTP header
20 *
21 * @return SignatureVerificationException
22 */
23 public static function factory(
24 $message,
25 $httpBody = null,
26 $sigHeader = null
27 ) {
28 $instance = new static($message);
29 $instance->setHttpBody($httpBody);
30 $instance->setSigHeader($sigHeader);
31
32 return $instance;
33 }
34
35 /**
36 * Gets the HTTP body as a string.
37 *
38 * @return null|string
39 */
40 public function getHttpBody()
41 {
42 return $this->httpBody;
43 }
44
45 /**
46 * Sets the HTTP body as a string.
47 *
48 * @param null|string $httpBody
49 */
50 public function setHttpBody($httpBody)
51 {
52 $this->httpBody = $httpBody;
53 }
54
55 /**
56 * Gets the `Stripe-Signature` HTTP header.
57 *
58 * @return null|string
59 */
60 public function getSigHeader()
61 {
62 return $this->sigHeader;
63 }
64
65 /**
66 * Sets the `Stripe-Signature` HTTP header.
67 *
68 * @param null|string $sigHeader
69 */
70 public function setSigHeader($sigHeader)
71 {
72 $this->sigHeader = $sigHeader;
73 }
74 }
75