application/models/bestitamazonpay4oxidipnhandler.php
protected function _paymentRefund($oData)
    {
        $sAmazonRefundId = $oData->RefundDetails->AmazonRefundId;
        $sSql = "SELECT COUNT(*)
            FROM bestitamazonrefunds 
            WHERE BESTITAMAZONREFUNDID = {$this->getDatabase()->quote($sAmazonRefundId)}
            LIMIT 1";
        $iMatches = (int)$this->getDatabase()->getOne($sSql);

        //Update Refund info
        if ($iMatches > 0 && isset($oData->RefundDetails->RefundStatus->State)) {
            $this->getClient()->updateRefund(
                $oData->RefundDetails->RefundStatus->State,
                $sAmazonRefundId
            );
            $this->logIPNResponse(Logger::INFO, 'OK', $oData);
            return true;
        }

        $this->logIPNResponse(Logger::ERROR, "Refund with Refund ID: {$sAmazonRefundId} not found", $oData);
        return false;
    }
protected function _paymentRefund($oData)
    {
        $sAmazonRefundId = $oData->RefundDetails->AmazonRefundId;
        $sSql = "SELECT COUNT(*)
            FROM bestitamazonrefunds 
            WHERE BESTITAMAZONREFUNDID = {$this->getDatabase()->quote($sAmazonRefundId)}
            LIMIT 1";
        $iMatches = (int)$this->getDatabase()->getOne($sSql);

        //Update Refund info
        if ($iMatches > 0 && isset($oData->RefundDetails->RefundStatus->State)) {
            $this->getClient()->updateRefund(
                $oData->RefundDetails->RefundStatus->State,
                $sAmazonRefundId
            );
            $this->logIPNResponse(Logger::INFO, 'OK', $oData);
            return true;
        }

        $this->logIPNResponse(Logger::ERROR, "Refund with Refund ID: {$sAmazonRefundId} not found", $oData);
        return false;
    }
protected function _paymentRefund ( $ oData ) { $ sAmazonRefundId = $ oData -> RefundDetails -> AmazonRefundId ; $ sSql = "SELECT COUNT(*)
            FROM bestitamazonrefunds 
            WHERE BESTITAMAZONREFUNDID = {$this->getDatabase()->quote($sAmazonRefundId)}
            LIMIT 1" ; $ iMatches = ( int ) $ this -> getDatabase ( ) -> getOne ( $ sSql ) ; //Update Refund info if ( $ iMatches > 0 && isset ( $ oData -> RefundDetails -> RefundStatus -> State ) ) { $ this -> getClient ( ) -> updateRefund ( $ oData -> RefundDetails -> RefundStatus -> State , $ sAmazonRefundId ) ; $ this -> logIPNResponse ( Logger :: INFO , 'OK' , $ oData ) ; return true ; } $ this -> logIPNResponse ( Logger :: ERROR , "Refund with Refund ID: {$sAmazonRefundId} not found" , $ oData ) ; return false ; }
Handles response for NotificationType = PaymentRefund

@param stdClass $oData

@return boolean
@throws oxConnectionException
@throws Exception
Handles response for NotificationType = PaymentRefund