protected function _post()
	{
		$requestXml = $this->getRequestBody()->serialize();
		if ($this->_helperConfig->isDebugMode()) {
			$logMessage = sprintf('[%s] Request Body: %s', __CLASS__, $this->cleanAuthXml($requestXml));
			Mage::log($logMessage, Zend_Log::DEBUG);
		}

		$xml = simplexml_load_string($requestXml);
		if( strcmp($xml->getName(), "RiskAssessmentRequest") === 0)
		{
			//Note this is a really crude way of doing this, but since this SDK is only for Risk Assess right now... IDC
			$hostname = "https://". $this->_config->getEndpoint() . "/v1.0/stores/". $this->_config->getStoreId() . "/risk/fraud/assess.xml";
		} elseif ( strcmp($xml->getName(), "RiskOrderConfirmationRequest") === 0 ) {
			//Note this is a really crude way of doing this, but since this SDK is only for Risk Assess right now... IDC
                        $hostname = "https://". $this->_config->getEndpoint() . "/v1.0/stores/". $this->_config->getStoreId() . "/risk/fraud/orderConfirmation.xml";
		} else {
			throw Mage::exception('Radial_RiskService_Sdk_Exception_Network_Error', "Unsupported Payload - ". $xml->getName());
		}

		$options = array();

		if( $this->_config->getResponseTimeout() )
		{
			$seconds = (float)$this->_config->getResponseTimeout() / 1000.0;
			$options = array( 'timeout' => $seconds );
		}

		$this->_lastRequestsResponse = Requests::post(
			$hostname,
			$this->_buildHeader(),
			$requestXml,
			$options
		);
		return $this->_lastRequestsResponse->success;
	}
protected function _post()
	{
		$requestXml = $this->getRequestBody()->serialize();
		if ($this->_helperConfig->isDebugMode()) {
			$logMessage = sprintf('[%s] Request Body: %s', __CLASS__, $this->cleanAuthXml($requestXml));
			Mage::log($logMessage, Zend_Log::DEBUG);
		}

		$xml = simplexml_load_string($requestXml);
		if( strcmp($xml->getName(), "RiskAssessmentRequest") === 0)
		{
			//Note this is a really crude way of doing this, but since this SDK is only for Risk Assess right now... IDC
			$hostname = "https://". $this->_config->getEndpoint() . "/v1.0/stores/". $this->_config->getStoreId() . "/risk/fraud/assess.xml";
		} elseif ( strcmp($xml->getName(), "RiskOrderConfirmationRequest") === 0 ) {
			//Note this is a really crude way of doing this, but since this SDK is only for Risk Assess right now... IDC
                        $hostname = "https://". $this->_config->getEndpoint() . "/v1.0/stores/". $this->_config->getStoreId() . "/risk/fraud/orderConfirmation.xml";
		} else {
			throw Mage::exception('Radial_RiskService_Sdk_Exception_Network_Error', "Unsupported Payload - ". $xml->getName());
		}

		$options = array();

		if( $this->_config->getResponseTimeout() )
		{
			$seconds = (float)$this->_config->getResponseTimeout() / 1000.0;
			$options = array( 'timeout' => $seconds );
		}

		$this->_lastRequestsResponse = Requests::post(
			$hostname,
			$this->_buildHeader(),
			$requestXml,
			$options
		);
		return $this->_lastRequestsResponse->success;
	}
protected function _post ( ) { $ requestXml = $ this -> getRequestBody ( ) -> serialize ( ) ; if ( $ this -> _helperConfig -> isDebugMode ( ) ) { $ logMessage = sprintf ( '[%s] Request Body: %s' , __CLASS__ , $ this -> cleanAuthXml ( $ requestXml ) ) ; Mage :: log ( $ logMessage , Zend_Log :: DEBUG ) ; } $ xml = simplexml_load_string ( $ requestXml ) ; if ( strcmp ( $ xml -> getName ( ) , "RiskAssessmentRequest" ) === 0 ) { //Note this is a really crude way of doing this, but since this SDK is only for Risk Assess right now... IDC $ hostname = "https://" . $ this -> _config -> getEndpoint ( ) . "/v1.0/stores/" . $ this -> _config -> getStoreId ( ) . "/risk/fraud/assess.xml" ; } elseif ( strcmp ( $ xml -> getName ( ) , "RiskOrderConfirmationRequest" ) === 0 ) { //Note this is a really crude way of doing this, but since this SDK is only for Risk Assess right now... IDC $ hostname = "https://" . $ this -> _config -> getEndpoint ( ) . "/v1.0/stores/" . $ this -> _config -> getStoreId ( ) . "/risk/fraud/orderConfirmation.xml" ; } else { throw Mage :: exception ( 'Radial_RiskService_Sdk_Exception_Network_Error' , "Unsupported Payload - " . $ xml -> getName ( ) ) ; } $ options = array ( ) ; if ( $ this -> _config -> getResponseTimeout ( ) ) { $ seconds = ( float ) $ this -> _config -> getResponseTimeout ( ) / 1000.0 ; $ options = array ( 'timeout' => $ seconds ) ; } $ this -> _lastRequestsResponse = Requests :: post ( $ hostname , $ this -> _buildHeader ( ) , $ requestXml , $ options ) ; return $ this -> _lastRequestsResponse -> success ; }
Send post CURL request.

@return Requests_Response
@throws Requests_Exception
Send post CURL request .