mirror of
https://github.com/itflow-org/itflow
synced 2026-03-23 05:55:38 +00:00
Added selectable num of records on each listing page, fixed up Pagination Records UI, added new stripe library, further worked on stripe integration, fixed mispelling in client details
This commit is contained in:
74
vendor/stripe-php-7.72.0/lib/Exception/SignatureVerificationException.php
vendored
Normal file
74
vendor/stripe-php-7.72.0/lib/Exception/SignatureVerificationException.php
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Exception;
|
||||
|
||||
/**
|
||||
* SignatureVerificationException is thrown when the signature verification for
|
||||
* a webhook fails.
|
||||
*/
|
||||
class SignatureVerificationException extends \Exception implements ExceptionInterface
|
||||
{
|
||||
protected $httpBody;
|
||||
protected $sigHeader;
|
||||
|
||||
/**
|
||||
* Creates a new SignatureVerificationException exception.
|
||||
*
|
||||
* @param string $message the exception message
|
||||
* @param null|string $httpBody the HTTP body as a string
|
||||
* @param null|string $sigHeader the `Stripe-Signature` HTTP header
|
||||
*
|
||||
* @return SignatureVerificationException
|
||||
*/
|
||||
public static function factory(
|
||||
$message,
|
||||
$httpBody = null,
|
||||
$sigHeader = null
|
||||
) {
|
||||
$instance = new static($message);
|
||||
$instance->setHttpBody($httpBody);
|
||||
$instance->setSigHeader($sigHeader);
|
||||
|
||||
return $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the HTTP body as a string.
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
public function getHttpBody()
|
||||
{
|
||||
return $this->httpBody;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the HTTP body as a string.
|
||||
*
|
||||
* @param null|string $httpBody
|
||||
*/
|
||||
public function setHttpBody($httpBody)
|
||||
{
|
||||
$this->httpBody = $httpBody;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the `Stripe-Signature` HTTP header.
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
public function getSigHeader()
|
||||
{
|
||||
return $this->sigHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the `Stripe-Signature` HTTP header.
|
||||
*
|
||||
* @param null|string $sigHeader
|
||||
*/
|
||||
public function setSigHeader($sigHeader)
|
||||
{
|
||||
$this->sigHeader = $sigHeader;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user