public function autoRefund(array $params)
    {
        if (false === isset($params['refundReasonCode'])) {
            $params['refundReasonCode'] = self::AUTO_REFUND_REASON_OTHER;
        }

        $response = $this
            ->communicationAdapter
            ->sendToApi(
                self::COMODO_AUTO_REFUND_URL,
                $params,
                CommunicationAdapter::RESPONSE_URL_ENCODED
            );

        if ($response['errorCode'] == 0) {
            return true;
        } else {
            throw $this->createException($response);
        }
    }
public function autoRefund(array $params)
    {
        if (false === isset($params['refundReasonCode'])) {
            $params['refundReasonCode'] = self::AUTO_REFUND_REASON_OTHER;
        }

        $response = $this
            ->communicationAdapter
            ->sendToApi(
                self::COMODO_AUTO_REFUND_URL,
                $params,
                CommunicationAdapter::RESPONSE_URL_ENCODED
            );

        if ($response['errorCode'] == 0) {
            return true;
        } else {
            throw $this->createException($response);
        }
    }
public function autoRefund ( array $ params ) { if ( false === isset ( $ params [ 'refundReasonCode' ] ) ) { $ params [ 'refundReasonCode' ] = self :: AUTO_REFUND_REASON_OTHER ; } $ response = $ this -> communicationAdapter -> sendToApi ( self :: COMODO_AUTO_REFUND_URL , $ params , CommunicationAdapter :: RESPONSE_URL_ENCODED ) ; if ( $ response [ 'errorCode' ] == 0 ) { return true ; } else { throw $ this -> createException ( $ response ) ; } }
Refunds a ordered certificate

@param array $params

@return bool

@throws AccountException
@throws ArgumentException
@throws CSRException
@throws RequestException
@throws UnknownApiException
@throws UnknownException
Refunds a ordered certificate