Model/IPNRequestPaymentSetter.php
protected function getAction()
    {
        $action    = self::CAPTURE_ACTION;
        $request   = $this->getRequest();
        $rawAmount = $request->getRequestParameter(self::MC_GROSS);
        $status    = $request->getRequestParameter(self::PAYPAL_PAYMENT_STATUS);

        if ((0 > $rawAmount) && (self::PAYPAL_STATUS_REFUND_DONE == $status)) {
            $action = self::REFUND_ACTION;
        }

        return $action;
    }
protected function getAction()
    {
        $action    = self::CAPTURE_ACTION;
        $request   = $this->getRequest();
        $rawAmount = $request->getRequestParameter(self::MC_GROSS);
        $status    = $request->getRequestParameter(self::PAYPAL_PAYMENT_STATUS);

        if ((0 > $rawAmount) && (self::PAYPAL_STATUS_REFUND_DONE == $status)) {
            $action = self::REFUND_ACTION;
        }

        return $action;
    }
protected function getAction ( ) { $ action = self :: CAPTURE_ACTION ; $ request = $ this -> getRequest ( ) ; $ rawAmount = $ request -> getRequestParameter ( self :: MC_GROSS ) ; $ status = $ request -> getRequestParameter ( self :: PAYPAL_PAYMENT_STATUS ) ; if ( ( 0 > $ rawAmount ) && ( self :: PAYPAL_STATUS_REFUND_DONE == $ status ) ) { $ action = self :: REFUND_ACTION ; } return $ action ; }
Get PayPal action from request, we might have a refund.

@return string
Get PayPal action from request we might have a refund .