controllers/oxpspaymorroworder.php
protected function _updatePaymentDescription(oxPayment $oxPayment)
    {
        $oLang = oxRegistry::getLang();

        if ($oxPayment->getPaymorrowPaymentType() == 'pm_invoice') {
            $oxPayment->oxpayments__oxdesc = new oxField(
                $oLang->translateString('PAYMORROW_PAYMENT_METHOD_NAME_INVOICE')
            );
        } elseif ($oxPayment->getPaymorrowPaymentType() == 'pm_sdd') {
            $oxPayment->oxpayments__oxdesc = new oxField(
                $oLang->translateString('PAYMORROW_PAYMENT_METHOD_NAME_DIRECT_DEBIT')
            );
        }

        $this->_oPayment = $oxPayment;
    }
protected function _updatePaymentDescription(oxPayment $oxPayment)
    {
        $oLang = oxRegistry::getLang();

        if ($oxPayment->getPaymorrowPaymentType() == 'pm_invoice') {
            $oxPayment->oxpayments__oxdesc = new oxField(
                $oLang->translateString('PAYMORROW_PAYMENT_METHOD_NAME_INVOICE')
            );
        } elseif ($oxPayment->getPaymorrowPaymentType() == 'pm_sdd') {
            $oxPayment->oxpayments__oxdesc = new oxField(
                $oLang->translateString('PAYMORROW_PAYMENT_METHOD_NAME_DIRECT_DEBIT')
            );
        }

        $this->_oPayment = $oxPayment;
    }
protected function _updatePaymentDescription ( oxPayment $ oxPayment ) { $ oLang = oxRegistry :: getLang ( ) ; if ( $ oxPayment -> getPaymorrowPaymentType ( ) == 'pm_invoice' ) { $ oxPayment -> oxpayments__oxdesc = new oxField ( $ oLang -> translateString ( 'PAYMORROW_PAYMENT_METHOD_NAME_INVOICE' ) ) ; } elseif ( $ oxPayment -> getPaymorrowPaymentType ( ) == 'pm_sdd' ) { $ oxPayment -> oxpayments__oxdesc = new oxField ( $ oLang -> translateString ( 'PAYMORROW_PAYMENT_METHOD_NAME_DIRECT_DEBIT' ) ) ; } $ this -> _oPayment = $ oxPayment ; }
Update payment model description fields with custom translations and set the payment.

@param OxpsPaymorrowOxPayment|oxPayment $oxPayment
Update payment model description fields with custom translations and set the payment .