public function enterDCVCode(array $params)
    {
        // Check parameters
        if (!isset($params['dcvCode'])) {
            throw new ArgumentException(-3, 'Please provide an order-number', 'dcvCode', '');
        }

        if (!isset($params['orderNumber'])) {
            throw new ArgumentException(-3, 'Please provide an order-number', 'orderNumber', '');
        }

        // this is not a official request, so we need to use the website
        $responseString = $this
            ->communicationAdapter
            ->sendToWebsite(self::COMODO_DCV_CODE_URL, $params);

        // Decode answer from website
        if (stristr($responseString, 'You have entered the correct Domain Control Validation code') !== false) {
            return true;
        } elseif (stristr($responseString, 'the certificate has already been issued') !== false) {
            throw new ArgumentException(-104, 'The certificate has already been issued', 'certificate', $responseString);
        } elseif (stristr($responseString, 'Invalid Validation Code!') !== false) {
            throw new ArgumentException(-103, 'Invalid Validation Code', 'validation-code', $responseString);
        } else {
            throw new UnknownException(99, 'UnknownException', $responseString);
        }
    }
public function enterDCVCode(array $params)
    {
        // Check parameters
        if (!isset($params['dcvCode'])) {
            throw new ArgumentException(-3, 'Please provide an order-number', 'dcvCode', '');
        }

        if (!isset($params['orderNumber'])) {
            throw new ArgumentException(-3, 'Please provide an order-number', 'orderNumber', '');
        }

        // this is not a official request, so we need to use the website
        $responseString = $this
            ->communicationAdapter
            ->sendToWebsite(self::COMODO_DCV_CODE_URL, $params);

        // Decode answer from website
        if (stristr($responseString, 'You have entered the correct Domain Control Validation code') !== false) {
            return true;
        } elseif (stristr($responseString, 'the certificate has already been issued') !== false) {
            throw new ArgumentException(-104, 'The certificate has already been issued', 'certificate', $responseString);
        } elseif (stristr($responseString, 'Invalid Validation Code!') !== false) {
            throw new ArgumentException(-103, 'Invalid Validation Code', 'validation-code', $responseString);
        } else {
            throw new UnknownException(99, 'UnknownException', $responseString);
        }
    }
public function enterDCVCode ( array $ params ) { // Check parameters if ( ! isset ( $ params [ 'dcvCode' ] ) ) { throw new ArgumentException ( - 3 , 'Please provide an order-number' , 'dcvCode' , '' ) ; } if ( ! isset ( $ params [ 'orderNumber' ] ) ) { throw new ArgumentException ( - 3 , 'Please provide an order-number' , 'orderNumber' , '' ) ; } // this is not a official request, so we need to use the website $ responseString = $ this -> communicationAdapter -> sendToWebsite ( self :: COMODO_DCV_CODE_URL , $ params ) ; // Decode answer from website if ( stristr ( $ responseString , 'You have entered the correct Domain Control Validation code' ) !== false ) { return true ; } elseif ( stristr ( $ responseString , 'the certificate has already been issued' ) !== false ) { throw new ArgumentException ( - 104 , 'The certificate has already been issued' , 'certificate' , $ responseString ) ; } elseif ( stristr ( $ responseString , 'Invalid Validation Code!' ) !== false ) { throw new ArgumentException ( - 103 , 'Invalid Validation Code' , 'validation-code' , $ responseString ) ; } else { throw new UnknownException ( 99 , 'UnknownException' , $ responseString ) ; } }
Function to enter the DCV code, coming from DCV E-Mail

@param array $params

@return bool
@throws Model\Exception\UnknownException
@throws Model\Exception\ArgumentException
Function to enter the DCV code coming from DCV E - Mail