mirror of
https://github.com/itflow-org/itflow
synced 2026-03-28 16:25:40 +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:
84
vendor/stripe-php-7.72.0/lib/Exception/CardException.php
vendored
Normal file
84
vendor/stripe-php-7.72.0/lib/Exception/CardException.php
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Exception;
|
||||
|
||||
/**
|
||||
* CardException is thrown when a user enters a card that can't be charged for
|
||||
* some reason.
|
||||
*/
|
||||
class CardException extends ApiErrorException
|
||||
{
|
||||
protected $declineCode;
|
||||
protected $stripeParam;
|
||||
|
||||
/**
|
||||
* Creates a new CardException exception.
|
||||
*
|
||||
* @param string $message the exception message
|
||||
* @param null|int $httpStatus the HTTP status code
|
||||
* @param null|string $httpBody the HTTP body as a string
|
||||
* @param null|array $jsonBody the JSON deserialized body
|
||||
* @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
|
||||
* @param null|string $stripeCode the Stripe error code
|
||||
* @param null|string $declineCode the decline code
|
||||
* @param null|string $stripeParam the parameter related to the error
|
||||
*
|
||||
* @return CardException
|
||||
*/
|
||||
public static function factory(
|
||||
$message,
|
||||
$httpStatus = null,
|
||||
$httpBody = null,
|
||||
$jsonBody = null,
|
||||
$httpHeaders = null,
|
||||
$stripeCode = null,
|
||||
$declineCode = null,
|
||||
$stripeParam = null
|
||||
) {
|
||||
$instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode);
|
||||
$instance->setDeclineCode($declineCode);
|
||||
$instance->setStripeParam($stripeParam);
|
||||
|
||||
return $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the decline code.
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
public function getDeclineCode()
|
||||
{
|
||||
return $this->declineCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the decline code.
|
||||
*
|
||||
* @param null|string $declineCode
|
||||
*/
|
||||
public function setDeclineCode($declineCode)
|
||||
{
|
||||
$this->declineCode = $declineCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the parameter related to the error.
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
public function getStripeParam()
|
||||
{
|
||||
return $this->stripeParam;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the parameter related to the error.
|
||||
*
|
||||
* @param null|string $stripeParam
|
||||
*/
|
||||
public function setStripeParam($stripeParam)
|
||||
{
|
||||
$this->stripeParam = $stripeParam;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user