application/models/bestitamazonpay4oxidclient.php
public function closeOrderReference($oOrder = null, $aRequestParameters = array(), $blUpdateOrderStatus = true)
    {
        $oData = $this->_callOrderRequest(
            'closeOrderReference',
            $oOrder,
            $aRequestParameters,
            array('amazon_order_reference_id'),
            $blProcessable,
            'AMZ-Order-Closed'
        );

        //Update Order info
        if ($blUpdateOrderStatus === true && $blProcessable === true) {
            $oOrder->assign(array(
                'oxtransstatus' => 'AMZ-Order-Closed'
            ));
            $oOrder->save();
        }

        return $oData;
    }
public function closeOrderReference($oOrder = null, $aRequestParameters = array(), $blUpdateOrderStatus = true)
    {
        $oData = $this->_callOrderRequest(
            'closeOrderReference',
            $oOrder,
            $aRequestParameters,
            array('amazon_order_reference_id'),
            $blProcessable,
            'AMZ-Order-Closed'
        );

        //Update Order info
        if ($blUpdateOrderStatus === true && $blProcessable === true) {
            $oOrder->assign(array(
                'oxtransstatus' => 'AMZ-Order-Closed'
            ));
            $oOrder->save();
        }

        return $oData;
    }
public function closeOrderReference ( $ oOrder = null , $ aRequestParameters = array ( ) , $ blUpdateOrderStatus = true ) { $ oData = $ this -> _callOrderRequest ( 'closeOrderReference' , $ oOrder , $ aRequestParameters , array ( 'amazon_order_reference_id' ) , $ blProcessable , 'AMZ-Order-Closed' ) ; //Update Order info if ( $ blUpdateOrderStatus === true && $ blProcessable === true ) { $ oOrder -> assign ( array ( 'oxtransstatus' => 'AMZ-Order-Closed' ) ) ; $ oOrder -> save ( ) ; } return $ oData ; }
Amazon CloseOrderReference method

@param oxOrder $oOrder             OXID Order object
@param array   $aRequestParameters Custom parameters to send

@return stdClass
@throws Exception
Amazon CloseOrderReference method