application/models/bestitamazonpay4oxidipnhandler.php
protected function _paymentAuthorize($oData)
    {
        $sId = $oData->AuthorizationDetails->AmazonAuthorizationId;
        $oOrder = $this->_loadOrderById('BESTITAMAZONAUTHORIZATIONID', $sId);

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

        $this->logIPNResponse(Logger::ERROR, "Order with Authorization ID: {$sId} not found", $oData);
        return false;
    }
protected function _paymentAuthorize($oData)
    {
        $sId = $oData->AuthorizationDetails->AmazonAuthorizationId;
        $oOrder = $this->_loadOrderById('BESTITAMAZONAUTHORIZATIONID', $sId);

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

        $this->logIPNResponse(Logger::ERROR, "Order with Authorization ID: {$sId} not found", $oData);
        return false;
    }
protected function _paymentAuthorize ( $ oData ) { $ sId = $ oData -> AuthorizationDetails -> AmazonAuthorizationId ; $ oOrder = $ this -> _loadOrderById ( 'BESTITAMAZONAUTHORIZATIONID' , $ sId ) ; if ( $ oOrder !== false && isset ( $ oData -> AuthorizationDetails -> AuthorizationStatus -> State ) ) { $ this -> getClient ( ) -> processAuthorization ( $ oOrder , $ oData -> AuthorizationDetails ) ; $ this -> logIPNResponse ( Logger :: INFO , 'OK' , $ oData ) ; return true ; } $ this -> logIPNResponse ( Logger :: ERROR , "Order with Authorization ID: {$sId} not found" , $ oData ) ; return false ; }
Handles response for NotificationType = PaymentAuthorize

@param stdClass $oData

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