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\Configuration\Credentials;
 6 
 7 use Team3\PayU\SignatureCalculator\Encoder\Algorithms\Md5Algorithm;
 8 
 9 /**
10  * {@inheritdoc}
11  *
12  * Will return sandbox credentials, MD5 algorithm for signature calculations
13  * and TLSv1 as encryption protocol
14  *
15  * Class TestCredentials
16  * @package Team3\PayU\Configuration\Credentials
17  */
18 class TestCredentials extends Credentials
19 {
20     const MERCHANT_POS_ID = '145227';
21     const PRIVATE_KEY = '13a980d4f851f3d9a1cfc792fb1f5e50';
22 
23     public function __construct()
24     {
25         $this->signatureAlgorithm = new Md5Algorithm();
26         $this->encryptionProtocols = 'TLSv1';
27     }
28 
29     /**
30      * @return string
31      */
32     public function getMerchantPosId()
33     {
34         return self::MERCHANT_POS_ID;
35     }
36 
37     /**
38      * @return string
39      */
40     public function getPrivateKey()
41     {
42         return self::PRIVATE_KEY;
43     }
44 }
45 
PayU integration by Krzysztof Gzocha API documentation generated by ApiGen