application/models/bestitamazonpay4oxidipnhandler.php
protected function _paymentCapture($oData)
    {
        $sId = $oData->CaptureDetails->AmazonCaptureId;
        $oOrder = $this->_loadOrderById('BESTITAMAZONCAPTUREID', $sId);

        if ($oOrder !== false && isset($oData->CaptureDetails->CaptureStatus->State)) {
            $this->getClient()->setCaptureState($oOrder, $oData->CaptureDetails, true);
            $this->logIPNResponse(Logger::INFO, 'OK', $oData);
            return true;
        }

        $this->logIPNResponse(Logger::ERROR, "Order with Capture ID: {$sId} not found", $oData);
        return false;
    }
protected function _paymentCapture($oData)
    {
        $sId = $oData->CaptureDetails->AmazonCaptureId;
        $oOrder = $this->_loadOrderById('BESTITAMAZONCAPTUREID', $sId);

        if ($oOrder !== false && isset($oData->CaptureDetails->CaptureStatus->State)) {
            $this->getClient()->setCaptureState($oOrder, $oData->CaptureDetails, true);
            $this->logIPNResponse(Logger::INFO, 'OK', $oData);
            return true;
        }

        $this->logIPNResponse(Logger::ERROR, "Order with Capture ID: {$sId} not found", $oData);
        return false;
    }
protected function _paymentCapture ( $ oData ) { $ sId = $ oData -> CaptureDetails -> AmazonCaptureId ; $ oOrder = $ this -> _loadOrderById ( 'BESTITAMAZONCAPTUREID' , $ sId ) ; if ( $ oOrder !== false && isset ( $ oData -> CaptureDetails -> CaptureStatus -> State ) ) { $ this -> getClient ( ) -> setCaptureState ( $ oOrder , $ oData -> CaptureDetails , true ) ; $ this -> logIPNResponse ( Logger :: INFO , 'OK' , $ oData ) ; return true ; } $ this -> logIPNResponse ( Logger :: ERROR , "Order with Capture ID: {$sId} not found" , $ oData ) ; return false ; }
Handles response for NotificationType = PaymentCapture

@param stdClass $oData

@return boolean
@throws Exception
Handles response for NotificationType = PaymentCapture