PayU integration by Krzysztof Gzocha
  • Namespace
  • Class

Namespaces

  • Team3
    • PayU
      • Annotation
      • Communication
        • CurlRequestBuilder
        • HttpStatusParser
        • Notification
        • Process
          • NotificationProcess
          • ResponseDeserializer
        • Request
          • Model
        • Response
          • Model
        • Sender
      • Configuration
        • Credentials
      • Order
        • Autocomplete
          • Strategy
        • Model
          • Buyer
          • Money
          • Products
          • ShippingMethods
          • Traits
        • Transformer
          • UserOrder
            • Strategy
              • Product
              • ShippingMethod
      • PropertyExtractor
        • Reader
      • Serializer
      • SignatureCalculator
        • Encoder
          • Algorithms
          • Strategy
        • ParametersSorter
        • Validator
      • ValidatorBuilder

Classes

  • Team3\PayU\ValidatorBuilder\ValidatorBuilder

Interfaces

  • Team3\PayU\ValidatorBuilder\ValidatorBuilderInterface
 1 <?php
 2 /**
 3  * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
 4  */
 5 namespace Team3\PayU\Communication\HttpStatusParser;
 6 
 7 use Exception;
 8 use Team3\PayU\Communication\Process\RequestProcessException;
 9 
10 /**
11  * Will be thrown when HTTP status code returned from PayU will be different then expected.
12  *
13  * Class HttpStatusParserException
14  * @package Team3\PayU\Communication\HttpStatusParser
15  */
16 class HttpStatusParserException extends RequestProcessException
17 {
18     /**
19      * @var int
20      */
21     private $statusCode;
22 
23     /**
24      * @param string    $message
25      * @param int       $statusCode
26      * @param Exception $previous
27      */
28     public function __construct(
29         $message = "",
30         $statusCode = 0,
31         Exception $previous = null
32     ) {
33         parent::__construct($message, 0, $previous);
34         $this->statusCode = $statusCode;
35     }
36 
37     /**
38      * @return int
39      */
40     public function getStatusCode()
41     {
42         return $this->statusCode;
43     }
44 }
45 
PayU integration by Krzysztof Gzocha API documentation generated by ApiGen