models/oxpspaymorrowoxorder.php
public function finalizeOrder( \OxidEsales\Eshop\Application\Model\Basket $oBasket, $oUser, $blRecalculatingOrder = false )
    {
        $mReturn = $this->_OxpsPaymorrowOxOrder_finalizeOrder_parent( $oBasket, $oUser, $blRecalculatingOrder );

        if ( ( $this->oxorder__oxtransstatus->value == 'OK' ) and $this->_wasPaymorrowPaymentUsed( $oBasket ) ) {
            $aData = array(
                'pm_order_transaction_id' => oxRegistry::get( 'OxpsPaymorrowModule' )->getPaymentTransactionId(),
                'order_id'                => $this->getId(),
                'new_order_id'            => $this->getPaymorrowOrderNumber(),
            );

            oxRegistry::get( 'OxpsPaymorrowLogger' )->logWithType( $aData, 'finalizeOrder' );

            /** @var OxpsPaymorrowRequestControllerProxy $oPmRequestControllerProxy */
            $oPmRequestControllerProxy = oxNew( 'OxpsPaymorrowRequestControllerProxy' );
            $oPmRequestControllerProxy->updateOrderId( $aData );
        }

        return $mReturn;
    }
public function finalizeOrder( \OxidEsales\Eshop\Application\Model\Basket $oBasket, $oUser, $blRecalculatingOrder = false )
    {
        $mReturn = $this->_OxpsPaymorrowOxOrder_finalizeOrder_parent( $oBasket, $oUser, $blRecalculatingOrder );

        if ( ( $this->oxorder__oxtransstatus->value == 'OK' ) and $this->_wasPaymorrowPaymentUsed( $oBasket ) ) {
            $aData = array(
                'pm_order_transaction_id' => oxRegistry::get( 'OxpsPaymorrowModule' )->getPaymentTransactionId(),
                'order_id'                => $this->getId(),
                'new_order_id'            => $this->getPaymorrowOrderNumber(),
            );

            oxRegistry::get( 'OxpsPaymorrowLogger' )->logWithType( $aData, 'finalizeOrder' );

            /** @var OxpsPaymorrowRequestControllerProxy $oPmRequestControllerProxy */
            $oPmRequestControllerProxy = oxNew( 'OxpsPaymorrowRequestControllerProxy' );
            $oPmRequestControllerProxy->updateOrderId( $aData );
        }

        return $mReturn;
    }
public function finalizeOrder ( \ OxidEsales \ Eshop \ Application \ Model \ Basket $ oBasket , $ oUser , $ blRecalculatingOrder = false ) { $ mReturn = $ this -> _OxpsPaymorrowOxOrder_finalizeOrder_parent ( $ oBasket , $ oUser , $ blRecalculatingOrder ) ; if ( ( $ this -> oxorder__oxtransstatus -> value == 'OK' ) and $ this -> _wasPaymorrowPaymentUsed ( $ oBasket ) ) { $ aData = array ( 'pm_order_transaction_id' => oxRegistry :: get ( 'OxpsPaymorrowModule' ) -> getPaymentTransactionId ( ) , 'order_id' => $ this -> getId ( ) , 'new_order_id' => $ this -> getPaymorrowOrderNumber ( ) , ) ; oxRegistry :: get ( 'OxpsPaymorrowLogger' ) -> logWithType ( $ aData , 'finalizeOrder' ) ; /** @var OxpsPaymorrowRequestControllerProxy $oPmRequestControllerProxy */ $ oPmRequestControllerProxy = oxNew ( 'OxpsPaymorrowRequestControllerProxy' ) ; $ oPmRequestControllerProxy -> updateOrderId ( $ aData ) ; } return $ mReturn ; }
Overridden parent method.
Sends an update order Id call to set order number instead of order OXID.
Triggers for complete order payed with a Paymorrow payment method.

@param \OxidEsales\Eshop\Application\Model\Basket $oBasket
@param oxUser                                              $oUser
@param bool                                                $blRecalculatingOrder

@return mixed
Overridden parent method . Sends an update order Id call to set order number instead of order OXID . Triggers for complete order payed with a Paymorrow payment method .