Model/IPNRequestValidator.php
public function isValid()
    {
        $payPalRequest = $this->getPayPalRequest();
        $payPalResponse = $this->getPayPalResponse();
        $shopOwnerUserName = $this->getShopOwnerUserName();
        $receiverEmailPayPal = $payPalRequest[self::RECEIVER_EMAIL];

        return ($payPalResponse->isPayPalAck() && $receiverEmailPayPal == $shopOwnerUserName);
    }
public function isValid()
    {
        $payPalRequest = $this->getPayPalRequest();
        $payPalResponse = $this->getPayPalResponse();
        $shopOwnerUserName = $this->getShopOwnerUserName();
        $receiverEmailPayPal = $payPalRequest[self::RECEIVER_EMAIL];

        return ($payPalResponse->isPayPalAck() && $receiverEmailPayPal == $shopOwnerUserName);
    }
public function isValid ( ) { $ payPalRequest = $ this -> getPayPalRequest ( ) ; $ payPalResponse = $ this -> getPayPalResponse ( ) ; $ shopOwnerUserName = $ this -> getShopOwnerUserName ( ) ; $ receiverEmailPayPal = $ payPalRequest [ self :: RECEIVER_EMAIL ] ; return ( $ payPalResponse -> isPayPalAck ( ) && $ receiverEmailPayPal == $ shopOwnerUserName ) ; }
Validate if IPN request from PayPal and to correct shop.

@return bool
Validate if IPN request from PayPal and to correct shop .