Model/IPNRequestVerifier.php
public function requestCorrect()
    {
        $request = $this->getRequest();
        $rawRequestData = $request->getPost();

        $responseDoVerifyWithPayPal = $this->doVerifyWithPayPal($rawRequestData);

        $ipnRequestValidator = $this->getIPNRequestValidator();
        $ipnRequestValidator->setPayPalRequest($rawRequestData);
        $ipnRequestValidator->setPayPalResponse($responseDoVerifyWithPayPal);
        $ipnRequestValidator->setShopOwnerUserName($this->getShopOwner());

        $requestCorrect = $ipnRequestValidator->isValid();
        if (!$requestCorrect) {
            $failureMessage = $ipnRequestValidator->getValidationFailureMessage();
            $this->setFailureMessage($failureMessage);
        }

        return $requestCorrect;
    }
public function requestCorrect()
    {
        $request = $this->getRequest();
        $rawRequestData = $request->getPost();

        $responseDoVerifyWithPayPal = $this->doVerifyWithPayPal($rawRequestData);

        $ipnRequestValidator = $this->getIPNRequestValidator();
        $ipnRequestValidator->setPayPalRequest($rawRequestData);
        $ipnRequestValidator->setPayPalResponse($responseDoVerifyWithPayPal);
        $ipnRequestValidator->setShopOwnerUserName($this->getShopOwner());

        $requestCorrect = $ipnRequestValidator->isValid();
        if (!$requestCorrect) {
            $failureMessage = $ipnRequestValidator->getValidationFailureMessage();
            $this->setFailureMessage($failureMessage);
        }

        return $requestCorrect;
    }
public function requestCorrect ( ) { $ request = $ this -> getRequest ( ) ; $ rawRequestData = $ request -> getPost ( ) ; $ responseDoVerifyWithPayPal = $ this -> doVerifyWithPayPal ( $ rawRequestData ) ; $ ipnRequestValidator = $ this -> getIPNRequestValidator ( ) ; $ ipnRequestValidator -> setPayPalRequest ( $ rawRequestData ) ; $ ipnRequestValidator -> setPayPalResponse ( $ responseDoVerifyWithPayPal ) ; $ ipnRequestValidator -> setShopOwnerUserName ( $ this -> getShopOwner ( ) ) ; $ requestCorrect = $ ipnRequestValidator -> isValid ( ) ; if ( ! $ requestCorrect ) { $ failureMessage = $ ipnRequestValidator -> getValidationFailureMessage ( ) ; $ this -> setFailureMessage ( $ failureMessage ) ; } return $ requestCorrect ; }
IPN handling function.
- verify with PayPal.

@return bool
IPN handling function . - verify with PayPal .