application/models/bestitamazonpay4oxidipnhandler.php
protected function _orderReferenceUpdate($oData)
    {
        $sId = $oData->OrderReference->AmazonOrderReferenceId;
        $oOrder = $this->_loadOrderById('BESTITAMAZONORDERREFERENCEID', $sId);

        if ($oOrder !== false && isset($oData->OrderReference->OrderReferenceStatus->State)) {
            $this->getClient()->processOrderReference($oOrder, $oData->OrderReference);
            $this->logIPNResponse(Logger::INFO, 'OK', $oData);
            return true;
        }

        $this->logIPNResponse(Logger::ERROR, "Order with Order Reference ID: {$sId} not found", $oData);
        return false;
    }
protected function _orderReferenceUpdate($oData)
    {
        $sId = $oData->OrderReference->AmazonOrderReferenceId;
        $oOrder = $this->_loadOrderById('BESTITAMAZONORDERREFERENCEID', $sId);

        if ($oOrder !== false && isset($oData->OrderReference->OrderReferenceStatus->State)) {
            $this->getClient()->processOrderReference($oOrder, $oData->OrderReference);
            $this->logIPNResponse(Logger::INFO, 'OK', $oData);
            return true;
        }

        $this->logIPNResponse(Logger::ERROR, "Order with Order Reference ID: {$sId} not found", $oData);
        return false;
    }
protected function _orderReferenceUpdate ( $ oData ) { $ sId = $ oData -> OrderReference -> AmazonOrderReferenceId ; $ oOrder = $ this -> _loadOrderById ( 'BESTITAMAZONORDERREFERENCEID' , $ sId ) ; if ( $ oOrder !== false && isset ( $ oData -> OrderReference -> OrderReferenceStatus -> State ) ) { $ this -> getClient ( ) -> processOrderReference ( $ oOrder , $ oData -> OrderReference ) ; $ this -> logIPNResponse ( Logger :: INFO , 'OK' , $ oData ) ; return true ; } $ this -> logIPNResponse ( Logger :: ERROR , "Order with Order Reference ID: {$sId} not found" , $ oData ) ; return false ; }
Handles response for NotificationType = OrderReferenceNotification

@param stdClass $oData

@return boolean
@throws Exception
Handles response for NotificationType = OrderReferenceNotification