Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
3 / 3
CRAP
100.00% covered (success)
100.00%
5 / 5
TestCredentials
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
3 / 3
3
100.00% covered (success)
100.00%
5 / 5
 __construct()
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 getMerchantPosId()
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getPrivateKey()
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
/**
 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
 */
namespace Team3\PayU\Configuration\Credentials;
use Team3\PayU\SignatureCalculator\Encoder\Algorithms\Md5Algorithm;
/**
 * {@inheritdoc}
 *
 * Will return sandbox credentials, MD5 algorithm for signature calculations
 * and TLSv1 as encryption protocol
 *
 * Class TestCredentials
 * @package Team3\PayU\Configuration\Credentials
 */
class TestCredentials extends Credentials
{
    const MERCHANT_POS_ID = '145227';
    const PRIVATE_KEY = '13a980d4f851f3d9a1cfc792fb1f5e50';
    public function __construct()
    {
        $this->signatureAlgorithm = new Md5Algorithm();
        $this->encryptionProtocols = 'TLSv1';
    }
    /**
     * @return string
     */
    public function getMerchantPosId()
    {
        return self::MERCHANT_POS_ID;
    }
    /**
     * @return string
     */
    public function getPrivateKey()
    {
        return self::PRIVATE_KEY;
    }
}