controllers/admin/oxpspaymorrowpaymentmap.php
public function save()
    {
        $aParams = oxRegistry::getConfig()->getRequestParameter( "editval" );

        $sOXID = $aParams['oxpayments__oxid'];

        /** @var OxpsPaymorrowOxPayment|oxPayment $oxPayment */
        $oxPayment = oxNew( 'oxpayment' );
        $oxPayment->load( $sOXID );

        $blPaymorrowActive = (int) $aParams['oxpayments__oxpspaymorrowactive'];

        // Set duplicated payment fields values
        $oxPayment = $this->_setDuplicatedFields( $oxPayment, $aParams );

        $oxPayment->setPaymorrowActive( $blPaymorrowActive );

        $iPaymorrowPaymentMapTo = (int) $aParams['oxpayments__oxpspaymorrowmap'];

        if ( $oxPayment->setPaymorrowPaymentMap( $iPaymorrowPaymentMapTo ) ) {
            $oxPayment->save();
        }
    }
public function save()
    {
        $aParams = oxRegistry::getConfig()->getRequestParameter( "editval" );

        $sOXID = $aParams['oxpayments__oxid'];

        /** @var OxpsPaymorrowOxPayment|oxPayment $oxPayment */
        $oxPayment = oxNew( 'oxpayment' );
        $oxPayment->load( $sOXID );

        $blPaymorrowActive = (int) $aParams['oxpayments__oxpspaymorrowactive'];

        // Set duplicated payment fields values
        $oxPayment = $this->_setDuplicatedFields( $oxPayment, $aParams );

        $oxPayment->setPaymorrowActive( $blPaymorrowActive );

        $iPaymorrowPaymentMapTo = (int) $aParams['oxpayments__oxpspaymorrowmap'];

        if ( $oxPayment->setPaymorrowPaymentMap( $iPaymorrowPaymentMapTo ) ) {
            $oxPayment->save();
        }
    }
public function save ( ) { $ aParams = oxRegistry :: getConfig ( ) -> getRequestParameter ( "editval" ) ; $ sOXID = $ aParams [ 'oxpayments__oxid' ] ; /** @var OxpsPaymorrowOxPayment|oxPayment $oxPayment */ $ oxPayment = oxNew ( 'oxpayment' ) ; $ oxPayment -> load ( $ sOXID ) ; $ blPaymorrowActive = ( int ) $ aParams [ 'oxpayments__oxpspaymorrowactive' ] ; // Set duplicated payment fields values $ oxPayment = $ this -> _setDuplicatedFields ( $ oxPayment , $ aParams ) ; $ oxPayment -> setPaymorrowActive ( $ blPaymorrowActive ) ; $ iPaymorrowPaymentMapTo = ( int ) $ aParams [ 'oxpayments__oxpspaymorrowmap' ] ; if ( $ oxPayment -> setPaymorrowPaymentMap ( $ iPaymorrowPaymentMapTo ) ) { $ oxPayment -> save ( ) ; } }
Save Payment methods mapping to database

@return string|void
Save Payment methods mapping to database