application/models/bestitamazonpay4oxidclient.php
public function getOrderReferenceDetails($oOrder = null, array $aParams = array(), $blReadonly = false)
    {
        $aRequestParameters = array();
        $sAmazonOrderReferenceId = ($oOrder === null) ?
            (string)$this->getSession()->getVariable('amazonOrderReferenceId') : '';

        if ($oOrder !== null) {
            $aRequestParameters['amazon_order_reference_id'] = $oOrder->getFieldData('bestitamazonorderreferenceid');
        } elseif ($sAmazonOrderReferenceId !== '') {
            $aRequestParameters['amazon_order_reference_id'] = $sAmazonOrderReferenceId;
            $sLoginToken = (string)$this->getSession()->getVariable('amazonLoginToken');

            if ($sLoginToken !== '') {
                $aRequestParameters['address_consent_token'] = $sLoginToken;
            }
        }

        //Make request
        $aRequestParameters = array_merge($aRequestParameters, $aParams);

        $oData = $this->_convertResponse($this->_getAmazonClient()->getOrderReferenceDetails($aRequestParameters));

        //Update Order info
        if ($blReadonly === false
            && $oOrder !== null
            && isset($oData->GetOrderReferenceDetailsResult->OrderReferenceDetails->OrderReferenceStatus->State)
        ) {
            $this->processOrderReference(
                $oOrder,
                $oData->GetOrderReferenceDetailsResult->OrderReferenceDetails
            );
        }

        return $oData;
    }
public function getOrderReferenceDetails($oOrder = null, array $aParams = array(), $blReadonly = false)
    {
        $aRequestParameters = array();
        $sAmazonOrderReferenceId = ($oOrder === null) ?
            (string)$this->getSession()->getVariable('amazonOrderReferenceId') : '';

        if ($oOrder !== null) {
            $aRequestParameters['amazon_order_reference_id'] = $oOrder->getFieldData('bestitamazonorderreferenceid');
        } elseif ($sAmazonOrderReferenceId !== '') {
            $aRequestParameters['amazon_order_reference_id'] = $sAmazonOrderReferenceId;
            $sLoginToken = (string)$this->getSession()->getVariable('amazonLoginToken');

            if ($sLoginToken !== '') {
                $aRequestParameters['address_consent_token'] = $sLoginToken;
            }
        }

        //Make request
        $aRequestParameters = array_merge($aRequestParameters, $aParams);

        $oData = $this->_convertResponse($this->_getAmazonClient()->getOrderReferenceDetails($aRequestParameters));

        //Update Order info
        if ($blReadonly === false
            && $oOrder !== null
            && isset($oData->GetOrderReferenceDetailsResult->OrderReferenceDetails->OrderReferenceStatus->State)
        ) {
            $this->processOrderReference(
                $oOrder,
                $oData->GetOrderReferenceDetailsResult->OrderReferenceDetails
            );
        }

        return $oData;
    }
public function getOrderReferenceDetails ( $ oOrder = null , array $ aParams = array ( ) , $ blReadonly = false ) { $ aRequestParameters = array ( ) ; $ sAmazonOrderReferenceId = ( $ oOrder === null ) ? ( string ) $ this -> getSession ( ) -> getVariable ( 'amazonOrderReferenceId' ) : '' ; if ( $ oOrder !== null ) { $ aRequestParameters [ 'amazon_order_reference_id' ] = $ oOrder -> getFieldData ( 'bestitamazonorderreferenceid' ) ; } elseif ( $ sAmazonOrderReferenceId !== '' ) { $ aRequestParameters [ 'amazon_order_reference_id' ] = $ sAmazonOrderReferenceId ; $ sLoginToken = ( string ) $ this -> getSession ( ) -> getVariable ( 'amazonLoginToken' ) ; if ( $ sLoginToken !== '' ) { $ aRequestParameters [ 'address_consent_token' ] = $ sLoginToken ; } } //Make request $ aRequestParameters = array_merge ( $ aRequestParameters , $ aParams ) ; $ oData = $ this -> _convertResponse ( $ this -> _getAmazonClient ( ) -> getOrderReferenceDetails ( $ aRequestParameters ) ) ; //Update Order info if ( $ blReadonly === false && $ oOrder !== null && isset ( $ oData -> GetOrderReferenceDetailsResult -> OrderReferenceDetails -> OrderReferenceStatus -> State ) ) { $ this -> processOrderReference ( $ oOrder , $ oData -> GetOrderReferenceDetailsResult -> OrderReferenceDetails ) ; } return $ oData ; }
Amazon GetOrderReferenceDetails method

@param oxOrder $oOrder
@param array   $aParams    Custom parameters to send
@param bool    $blReadonly

@return stdClass
@throws Exception
Amazon GetOrderReferenceDetails method