CardException::factory( string $message, null|int $httpStatus = null, null|string $httpBody = null, null|array $jsonBody = null, null|array|StripeUtilCaseInsensitiveArray $httpHeaders = null, null|string $stripeCode = null, null|string $declineCode = null, null|string $stripeParam = null )
Creates a new CardException exception.
Description Description
Parameters Parameters
- $message
-
(Required) the exception message
- $httpStatus
-
(Optional) the HTTP status code
Default value: null
- $httpBody
-
(Optional) the HTTP body as a string
Default value: null
- $jsonBody
-
(Optional) the JSON deserialized body
Default value: null
- $httpHeaders
-
(Optional) the HTTP headers array
Default value: null
- $stripeCode
-
(Optional) the Stripe error code
Default value: null
- $declineCode
-
(Optional) the decline code
Default value: null
- $stripeParam
-
(Optional) the parameter related to the error
Default value: null
Return Return
(StripeExceptionCardException)
Source Source
File: includes/gateways/stripe/vendor/stripe/stripe-php/lib/Exception/CardException.php