public function query( MShop_Order_Item_Interface $order )
	{
		$orderManager = MShop_Factory::createManager( $this->_getContext(), 'order' );

		if( ( $tid = $this->_getOrderServiceItem( $order->getBaseId() )->getAttribute('TRANSACTIONID') ) === null )
		{
			$msg = sprintf( 'PayPal Express: Payment transaction ID for order ID "%1$s" not available', $order->getId() );
			throw new MShop_Service_Exception( $msg );
		}

		$values = $this->_getAuthParameter();
		$values['METHOD'] = 'GetTransactionDetails';
		$values['TRANSACTIONID'] = $tid;

		$urlQuery = http_build_query( $values, '', '&' );
		$response = $this->_getCommunication()->transmit( $this->_apiendpoint, 'POST', $urlQuery );
		$rvals = $this->_checkResponse( $order->getId(), $response, __METHOD__ );

		$this->_setPaymentStatus( $order, $rvals );
		$orderManager->saveItem( $order );
	}
public function query( MShop_Order_Item_Interface $order )
	{
		$orderManager = MShop_Factory::createManager( $this->_getContext(), 'order' );

		if( ( $tid = $this->_getOrderServiceItem( $order->getBaseId() )->getAttribute('TRANSACTIONID') ) === null )
		{
			$msg = sprintf( 'PayPal Express: Payment transaction ID for order ID "%1$s" not available', $order->getId() );
			throw new MShop_Service_Exception( $msg );
		}

		$values = $this->_getAuthParameter();
		$values['METHOD'] = 'GetTransactionDetails';
		$values['TRANSACTIONID'] = $tid;

		$urlQuery = http_build_query( $values, '', '&' );
		$response = $this->_getCommunication()->transmit( $this->_apiendpoint, 'POST', $urlQuery );
		$rvals = $this->_checkResponse( $order->getId(), $response, __METHOD__ );

		$this->_setPaymentStatus( $order, $rvals );
		$orderManager->saveItem( $order );
	}
public function query ( MShop_Order_Item_Interface $ order ) { $ orderManager = MShop_Factory :: createManager ( $ this -> _getContext ( ) , 'order' ) ; if ( ( $ tid = $ this -> _getOrderServiceItem ( $ order -> getBaseId ( ) ) -> getAttribute ( 'TRANSACTIONID' ) ) === null ) { $ msg = sprintf ( 'PayPal Express: Payment transaction ID for order ID "%1$s" not available' , $ order -> getId ( ) ) ; throw new MShop_Service_Exception ( $ msg ) ; } $ values = $ this -> _getAuthParameter ( ) ; $ values [ 'METHOD' ] = 'GetTransactionDetails' ; $ values [ 'TRANSACTIONID' ] = $ tid ; $ urlQuery = http_build_query ( $ values , '' , '&' ) ; $ response = $ this -> _getCommunication ( ) -> transmit ( $ this -> _apiendpoint , 'POST' , $ urlQuery ) ; $ rvals = $ this -> _checkResponse ( $ order -> getId ( ) , $ response , __METHOD__ ) ; $ this -> _setPaymentStatus ( $ order , $ rvals ) ; $ orderManager -> saveItem ( $ order ) ; }
Queries for status updates for the given order if supported.

@param MShop_Order_Item_Interface $order Order invoice object
Queries for status updates for the given order if supported .