protected function generateAuthString()
    {
        if (empty($this->password) || empty($this->userName)) {
            throw new ApiCredentialsException(" Undefined userName and/or password ");
        }

        $this->authString = $this->getTestMode() ? sha1($this->userName . $this->password . 'sandbox') : sha1($this->userName . $this->password);
    }