application/controllers/bestitamazonipn.php
public function render()
    {
        //If ERP mode is enabled do nothing, if IPN or CRON authorize unauthorized orders
        if ($this->_getContainer()->getConfig()->getConfigParam('blAmazonERP') === true) {
            return $this->_processError('IPN response handling disabled - ERP mode is ON (Module settings)');
        }

        //Check if IPN response handling is turned ON
        if ($this->_getContainer()->getConfig()->getConfigParam('sAmazonAuthorize') !== 'IPN') {
            return $this->_processError('IPN response handling disabled (Module settings)');
        }

        //Get SNS message
        $sBody = file_get_contents($this->_sInput);

        if ($sBody === '') {
            return $this->_processError('SNS message empty or Error while reading SNS message occurred');
        }

        //Perform IPN action
        if ($this->_getContainer()->getIpnHandler()->processIPNAction($sBody) !== true) {
            return $this->_processError('Error while handling Amazon response');
        }

        return $this->_sThisTemplate;
    }
public function render()
    {
        //If ERP mode is enabled do nothing, if IPN or CRON authorize unauthorized orders
        if ($this->_getContainer()->getConfig()->getConfigParam('blAmazonERP') === true) {
            return $this->_processError('IPN response handling disabled - ERP mode is ON (Module settings)');
        }

        //Check if IPN response handling is turned ON
        if ($this->_getContainer()->getConfig()->getConfigParam('sAmazonAuthorize') !== 'IPN') {
            return $this->_processError('IPN response handling disabled (Module settings)');
        }

        //Get SNS message
        $sBody = file_get_contents($this->_sInput);

        if ($sBody === '') {
            return $this->_processError('SNS message empty or Error while reading SNS message occurred');
        }

        //Perform IPN action
        if ($this->_getContainer()->getIpnHandler()->processIPNAction($sBody) !== true) {
            return $this->_processError('Error while handling Amazon response');
        }

        return $this->_sThisTemplate;
    }
public function render ( ) { //If ERP mode is enabled do nothing, if IPN or CRON authorize unauthorized orders if ( $ this -> _getContainer ( ) -> getConfig ( ) -> getConfigParam ( 'blAmazonERP' ) === true ) { return $ this -> _processError ( 'IPN response handling disabled - ERP mode is ON (Module settings)' ) ; } //Check if IPN response handling is turned ON if ( $ this -> _getContainer ( ) -> getConfig ( ) -> getConfigParam ( 'sAmazonAuthorize' ) !== 'IPN' ) { return $ this -> _processError ( 'IPN response handling disabled (Module settings)' ) ; } //Get SNS message $ sBody = file_get_contents ( $ this -> _sInput ) ; if ( $ sBody === '' ) { return $ this -> _processError ( 'SNS message empty or Error while reading SNS message occurred' ) ; } //Perform IPN action if ( $ this -> _getContainer ( ) -> getIpnHandler ( ) -> processIPNAction ( $ sBody ) !== true ) { return $ this -> _processError ( 'Error while handling Amazon response' ) ; } return $ this -> _sThisTemplate ; }
The controller entry point.

@return string
@throws Exception
@throws oxConnectionException
@throws oxSystemComponentException
The controller entry point .