source/Application/Model/User.php
public function getUserPayments($sOXID = null)
    {
        if ($this->_oPayments === null) {
            if (!$sOXID) {
                $sOXID = $this->getId();
            }

            $sSelect = 'select * from oxuserpayments where oxuserid = ' . \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quote($sOXID) . ' ';

            $this->_oPayments = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);
            $this->_oPayments->init('oxUserPayment');
            $this->_oPayments->selectString($sSelect);
        }

        return $this->_oPayments;
    }
public function getUserPayments($sOXID = null)
    {
        if ($this->_oPayments === null) {
            if (!$sOXID) {
                $sOXID = $this->getId();
            }

            $sSelect = 'select * from oxuserpayments where oxuserid = ' . \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quote($sOXID) . ' ';

            $this->_oPayments = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);
            $this->_oPayments->init('oxUserPayment');
            $this->_oPayments->selectString($sSelect);
        }

        return $this->_oPayments;
    }
public function getUserPayments ( $ sOXID = null ) { if ( $ this -> _oPayments === null ) { if ( ! $ sOXID ) { $ sOXID = $ this -> getId ( ) ; } $ sSelect = 'select * from oxuserpayments where oxuserid = ' . \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) -> quote ( $ sOXID ) . ' ' ; $ this -> _oPayments = oxNew ( \ OxidEsales \ Eshop \ Core \ Model \ ListModel :: class ) ; $ this -> _oPayments -> init ( 'oxUserPayment' ) ; $ this -> _oPayments -> selectString ( $ sSelect ) ; } return $ this -> _oPayments ; }
Returns user payment history list object

@param string $sOXID object ID (default is null)

@return object oxList with oxuserpayments objects
Returns user payment history list object