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\Order\Autocomplete\Strategy;
 6 
 7 use Team3\PayU\Configuration\ConfigurationInterface;
 8 use Team3\PayU\Order\Model\OrderInterface;
 9 
10 class MerchantPosIdStrategy implements AutocompleteStrategyInterface
11 {
12     /**
13      * @param OrderInterface $order
14      *
15      * @return bool
16      */
17     public function supports(OrderInterface $order)
18     {
19         return null === $order->getMerchantPosId();
20     }
21 
22     /**
23      * @param OrderInterface         $order
24      * @param ConfigurationInterface $configuration
25      */
26     public function autocomplete(
27         OrderInterface $order,
28         ConfigurationInterface $configuration
29     ) {
30         $order->setMerchantPosId(
31             $configuration->getCredentials()->getMerchantPosId()
32         );
33     }
34 }
35 
PayU integration by Krzysztof Gzocha API documentation generated by ApiGen