application/models/bestitamazonpay4oxidclient.php
public function getAmazonProperty($sPropertyName, $blCommon = false)
    {
        $sSandboxPrefix = '';

        if ($blCommon === false && (bool)$this->getConfig()->getConfigParam('blAmazonSandboxActive') === true) {
            $sSandboxPrefix = 'Sandbox';
        }

        $sAmazonLocale = $this->getConfig()->getConfigParam('sAmazonLocale');
        $sPropertyName = '_'.$sPropertyName.$sAmazonLocale.$sSandboxPrefix;

        if (property_exists($this, $sPropertyName)) {
            return $this->$sPropertyName;
        }

        return null;
    }
public function getAmazonProperty($sPropertyName, $blCommon = false)
    {
        $sSandboxPrefix = '';

        if ($blCommon === false && (bool)$this->getConfig()->getConfigParam('blAmazonSandboxActive') === true) {
            $sSandboxPrefix = 'Sandbox';
        }

        $sAmazonLocale = $this->getConfig()->getConfigParam('sAmazonLocale');
        $sPropertyName = '_'.$sPropertyName.$sAmazonLocale.$sSandboxPrefix;

        if (property_exists($this, $sPropertyName)) {
            return $this->$sPropertyName;
        }

        return null;
    }
public function getAmazonProperty ( $ sPropertyName , $ blCommon = false ) { $ sSandboxPrefix = '' ; if ( $ blCommon === false && ( bool ) $ this -> getConfig ( ) -> getConfigParam ( 'blAmazonSandboxActive' ) === true ) { $ sSandboxPrefix = 'Sandbox' ; } $ sAmazonLocale = $ this -> getConfig ( ) -> getConfigParam ( 'sAmazonLocale' ) ; $ sPropertyName = '_' . $ sPropertyName . $ sAmazonLocale . $ sSandboxPrefix ; if ( property_exists ( $ this , $ sPropertyName ) ) { return $ this -> $ sPropertyName ; } return null ; }
Returns class property by given property name and other params

@param string  $sPropertyName Property name
@param boolean $blCommon      Include 'Sandbox' in property name or not

@return mixed
Returns class property by given property name and other params