ext/bestitamazonpay4oxid_oxorder.php
public function finalizeOrder(Basket $oBasket, $oUser, $blRecalculatingOrder = false)
    {
        if ($this->_preFinalizeOrder($oBasket, $oUser, $blIsAmazonOrder, $blAuthorizeAsync) === false) {
            return oxOrder::ORDER_STATE_PAYMENTERROR;
        }

        //Original OXID method which creates and order
        $iRet = $this->_parentFinalizeOrder($oBasket, $oUser, $blRecalculatingOrder);

        //If order was successfull perform some Amazon actions
        if ($blIsAmazonOrder === true) {
            //If order was successfull update order details with reference ID
            if ($iRet < 2) {
                $this->_performAmazonActions($blAuthorizeAsync);
            } else {
                $this->_getContainer()->getClient()->cancelOrderReference($this);
            }
        }

        return $iRet;
    }
public function finalizeOrder(Basket $oBasket, $oUser, $blRecalculatingOrder = false)
    {
        if ($this->_preFinalizeOrder($oBasket, $oUser, $blIsAmazonOrder, $blAuthorizeAsync) === false) {
            return oxOrder::ORDER_STATE_PAYMENTERROR;
        }

        //Original OXID method which creates and order
        $iRet = $this->_parentFinalizeOrder($oBasket, $oUser, $blRecalculatingOrder);

        //If order was successfull perform some Amazon actions
        if ($blIsAmazonOrder === true) {
            //If order was successfull update order details with reference ID
            if ($iRet < 2) {
                $this->_performAmazonActions($blAuthorizeAsync);
            } else {
                $this->_getContainer()->getClient()->cancelOrderReference($this);
            }
        }

        return $iRet;
    }
public function finalizeOrder ( Basket $ oBasket , $ oUser , $ blRecalculatingOrder = false ) { if ( $ this -> _preFinalizeOrder ( $ oBasket , $ oUser , $ blIsAmazonOrder , $ blAuthorizeAsync ) === false ) { return oxOrder :: ORDER_STATE_PAYMENTERROR ; } //Original OXID method which creates and order $ iRet = $ this -> _parentFinalizeOrder ( $ oBasket , $ oUser , $ blRecalculatingOrder ) ; //If order was successfull perform some Amazon actions if ( $ blIsAmazonOrder === true ) { //If order was successfull update order details with reference ID if ( $ iRet < 2 ) { $ this -> _performAmazonActions ( $ blAuthorizeAsync ) ; } else { $ this -> _getContainer ( ) -> getClient ( ) -> cancelOrderReference ( $ this ) ; } } return $ iRet ; }
Confirm Order details to Amazon if payment id is bestitamazon and amazonreferenceid exists
Update user details with the full details received from amazon

@param Basket     $oBasket
@param User       $oUser
@param bool|false $blRecalculatingOrder

@return int
@throws Exception
Confirm Order details to Amazon if payment id is bestitamazon and amazonreferenceid exists Update user details with the full details received from amazon