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;
 6 
 7 use Buzz\Client\Curl;
 8 use Psr\Log\LoggerInterface;
 9 use Team3\PayU\Communication\CurlRequestBuilder\CurlRequestBuilder;
10 use Team3\PayU\Communication\Sender\Sender;
11 use Team3\PayU\Serializer\SerializerInterface;
12 
13 /**
14  * {@inheritdoc}
15  */
16 class ClientAdapterFactory implements ClientAdapterFactoryInterface
17 {
18     /**
19      * @param SerializerInterface $serializer
20      * @param LoggerInterface     $logger
21      *
22      * @return ClientInterface
23      */
24     public function build(
25         SerializerInterface $serializer,
26         LoggerInterface $logger
27     ) {
28         return new ClientAdapter(
29             new Sender(new Curl(), $logger),
30             new CurlRequestBuilder($serializer),
31             $logger
32         );
33     }
34 }
35 
PayU integration by Krzysztof Gzocha API documentation generated by ApiGen