models/oxpspaymorrowoxbasket.php
protected function _getPaymentMethodSurcharge( $mLineItem = null )
    {
        $oSession = oxRegistry::getSession();

        if ( $oSession->getVariable( 'paymentid' ) or
             ( !$aPaymentPostData = (array) $oSession->getVariable( 'pm_verify' ) ) or
             !array_key_exists( 'paymentid', $aPaymentPostData )
        ) {
            return array();
        }

        return $this->_formatPriceItemResponse(
            $this->_loadPaymentMethodSurcharge( (string) $aPaymentPostData['paymentid'] ),
            $mLineItem
        );
    }
protected function _getPaymentMethodSurcharge( $mLineItem = null )
    {
        $oSession = oxRegistry::getSession();

        if ( $oSession->getVariable( 'paymentid' ) or
             ( !$aPaymentPostData = (array) $oSession->getVariable( 'pm_verify' ) ) or
             !array_key_exists( 'paymentid', $aPaymentPostData )
        ) {
            return array();
        }

        return $this->_formatPriceItemResponse(
            $this->_loadPaymentMethodSurcharge( (string) $aPaymentPostData['paymentid'] ),
            $mLineItem
        );
    }
protected function _getPaymentMethodSurcharge ( $ mLineItem = null ) { $ oSession = oxRegistry :: getSession ( ) ; if ( $ oSession -> getVariable ( 'paymentid' ) or ( ! $ aPaymentPostData = ( array ) $ oSession -> getVariable ( 'pm_verify' ) ) or ! array_key_exists ( 'paymentid' , $ aPaymentPostData ) ) { return array ( ) ; } return $ this -> _formatPriceItemResponse ( $ this -> _loadPaymentMethodSurcharge ( ( string ) $ aPaymentPostData [ 'paymentid' ] ) , $ mLineItem ) ; }
Get payment method surcharge line item by loading it from posted Paymorrow payment form data.

@param null|int $mLineItem If null, then surcharge price object is returned, else surcharge line item data array

@return oxPrice|array
Get payment method surcharge line item by loading it from posted Paymorrow payment form data .