protected function _captureOrders()
    {
        $sSQLAddShippedCase = '';

        //Capture orders if in module settings was set to capture just shipped orders
        if ((string)$this->_getContainer()->getConfig()->getConfigParam('sAmazonCapture') === 'SHIPPED') {
            $sSQLAddShippedCase = ' AND OXSENDDATE > 0';
        }

        $aProcessed = $this->_processOrderStates(
            "SELECT OXID, OXORDERNR
            FROM oxorder
            WHERE BESTITAMAZONAUTHORIZATIONID != ''
              AND OXTRANSSTATUS = 'AMZ-Authorize-Open' {$sSQLAddShippedCase}",
            'capture'
        );

        foreach ($aProcessed as $sOrderNumber => $oData) {
            if (isset($oData->CaptureResult->CaptureDetails->CaptureStatus->State)) {
                $sState = $oData->CaptureResult->CaptureDetails->CaptureStatus->State;
                $this->_addToMessages("Capture Order #{$sOrderNumber} - Status updated to: {$sState}<br/>");
            }
        }
    }