ext/bestitamazonpay4oxid_payment.php
public function validatePayment()
    {
        $oSession = $this->_getContainer()->getSession();
        $oConfig = $this->_getContainer()->getConfig();

        //Don't do anything with order remark if we not under Amazon Pay
        if ((string)$oSession->getVariable('amazonOrderReferenceId') === ''
            || (string)$oConfig->getRequestParameter('paymentid') !== 'bestitamazon'
        ) {
            return parent::validatePayment();
        }

        // order remark
        $sOrderRemark = (string)$oConfig->getRequestParameter('order_remark', true);

        if ($sOrderRemark !== '') {
            $oSession->setVariable('ordrem', $sOrderRemark);
        } else {
            $oSession->deleteVariable('ordrem');
        }

        return parent::validatePayment();
    }
public function validatePayment()
    {
        $oSession = $this->_getContainer()->getSession();
        $oConfig = $this->_getContainer()->getConfig();

        //Don't do anything with order remark if we not under Amazon Pay
        if ((string)$oSession->getVariable('amazonOrderReferenceId') === ''
            || (string)$oConfig->getRequestParameter('paymentid') !== 'bestitamazon'
        ) {
            return parent::validatePayment();
        }

        // order remark
        $sOrderRemark = (string)$oConfig->getRequestParameter('order_remark', true);

        if ($sOrderRemark !== '') {
            $oSession->setVariable('ordrem', $sOrderRemark);
        } else {
            $oSession->deleteVariable('ordrem');
        }

        return parent::validatePayment();
    }
public function validatePayment ( ) { $ oSession = $ this -> _getContainer ( ) -> getSession ( ) ; $ oConfig = $ this -> _getContainer ( ) -> getConfig ( ) ; //Don't do anything with order remark if we not under Amazon Pay if ( ( string ) $ oSession -> getVariable ( 'amazonOrderReferenceId' ) === '' || ( string ) $ oConfig -> getRequestParameter ( 'paymentid' ) !== 'bestitamazon' ) { return parent :: validatePayment ( ) ; } // order remark $ sOrderRemark = ( string ) $ oConfig -> getRequestParameter ( 'order_remark' , true ) ; if ( $ sOrderRemark !== '' ) { $ oSession -> setVariable ( 'ordrem' , $ sOrderRemark ) ; } else { $ oSession -> deleteVariable ( 'ordrem' ) ; } return parent :: validatePayment ( ) ; }
Set's order remark to session

@return mixed
@throws oxSystemComponentException
Set s order remark to session