models/oxpspaymorrowoxbasket.php
protected function _loadPaymentMethodSurcharge( $sPaymentId )
    {
        /** @var oxPayment $oPaymentMethod */
        $oPaymentMethod = oxNew( 'oxPayment' );

        if ( !$oPaymentMethod->load( $sPaymentId ) or !$oPaymentMethod->getId() ) {
            return array();
        }

        $oPaymentMethod->calculate( $this );
        $oSurchargePrice = $oPaymentMethod->getPrice();

        if ( empty( $oSurchargePrice ) ) {
            return array();
        }

        return $oSurchargePrice;
    }
protected function _loadPaymentMethodSurcharge( $sPaymentId )
    {
        /** @var oxPayment $oPaymentMethod */
        $oPaymentMethod = oxNew( 'oxPayment' );

        if ( !$oPaymentMethod->load( $sPaymentId ) or !$oPaymentMethod->getId() ) {
            return array();
        }

        $oPaymentMethod->calculate( $this );
        $oSurchargePrice = $oPaymentMethod->getPrice();

        if ( empty( $oSurchargePrice ) ) {
            return array();
        }

        return $oSurchargePrice;
    }
protected function _loadPaymentMethodSurcharge ( $ sPaymentId ) { /** @var oxPayment $oPaymentMethod */ $ oPaymentMethod = oxNew ( 'oxPayment' ) ; if ( ! $ oPaymentMethod -> load ( $ sPaymentId ) or ! $ oPaymentMethod -> getId ( ) ) { return array ( ) ; } $ oPaymentMethod -> calculate ( $ this ) ; $ oSurchargePrice = $ oPaymentMethod -> getPrice ( ) ; if ( empty ( $ oSurchargePrice ) ) { return array ( ) ; } return $ oSurchargePrice ; }
Load payment method by ID and calculate its surcharge for the basket.

@param string $sPaymentId

@return array|oxPrice Empty array on failure, price object on success.
Load payment method by ID and calculate its surcharge for the basket .