protected function _checkResponse( $orderid, $response, $method )
	{
		$rvals = array();
		parse_str( $response, $rvals );

		if( $rvals['ACK'] !== 'Success' )
		{
			$msg = 'PayPal Express: method = ' . $method . ', order ID = ' . $orderid . ', response = ' . print_r( $rvals, true );
			$this->_getContext()->getLogger()->log( $msg, MW_Logger_Abstract::INFO );

			if( $rvals['ACK'] !== 'SuccessWithWarning' )
			{
				$short = ( isset( $rvals['L_SHORTMESSAGE0'] ) ? $rvals['L_SHORTMESSAGE0'] : '<none>' );
				$msg = sprintf( 'PayPal Express: Request for order ID "%1$s" failed with "%2$s"', $orderid, $short );
				throw new MShop_Service_Exception( $msg );
			}
		}

		return $rvals;
	}
protected function _checkResponse( $orderid, $response, $method )
	{
		$rvals = array();
		parse_str( $response, $rvals );

		if( $rvals['ACK'] !== 'Success' )
		{
			$msg = 'PayPal Express: method = ' . $method . ', order ID = ' . $orderid . ', response = ' . print_r( $rvals, true );
			$this->_getContext()->getLogger()->log( $msg, MW_Logger_Abstract::INFO );

			if( $rvals['ACK'] !== 'SuccessWithWarning' )
			{
				$short = ( isset( $rvals['L_SHORTMESSAGE0'] ) ? $rvals['L_SHORTMESSAGE0'] : '<none>' );
				$msg = sprintf( 'PayPal Express: Request for order ID "%1$s" failed with "%2$s"', $orderid, $short );
				throw new MShop_Service_Exception( $msg );
			}
		}

		return $rvals;
	}
protected function _checkResponse ( $ orderid , $ response , $ method ) { $ rvals = array ( ) ; parse_str ( $ response , $ rvals ) ; if ( $ rvals [ 'ACK' ] !== 'Success' ) { $ msg = 'PayPal Express: method = ' . $ method . ', order ID = ' . $ orderid . ', response = ' . print_r ( $ rvals , true ) ; $ this -> _getContext ( ) -> getLogger ( ) -> log ( $ msg , MW_Logger_Abstract :: INFO ) ; if ( $ rvals [ 'ACK' ] !== 'SuccessWithWarning' ) { $ short = ( isset ( $ rvals [ 'L_SHORTMESSAGE0' ] ) ? $ rvals [ 'L_SHORTMESSAGE0' ] : '<none>' ) ; $ msg = sprintf ( 'PayPal Express: Request for order ID "%1$s" failed with "%2$s"' , $ orderid , $ short ) ; throw new MShop_Service_Exception ( $ msg ) ; } } return $ rvals ; }
Checks the response from the payment server.

@param string $orderid Order item ID
@param string $response Response from the payment provider
@param string $method Name of the calling method
@return array Associative list of key/value pairs containing the response parameters
@throws MShop_Service_Exception If request was not successful and an error was returned
Checks the response from the payment server .