app/code/community/Adyen/Payment/Model/ProcessNotification.php
protected function _retrieveLast4DigitsFromReason($reason)
    {
        $result = "";

        if ($reason != "") {
            $reasonArray = explode(":", $reason);
            if ($reasonArray != null && is_array($reasonArray)) {
                if (isset($reasonArray[1])) {
                    $result = $reasonArray[1];
                }
            }
        }

        return $result;
    }
protected function _retrieveLast4DigitsFromReason($reason)
    {
        $result = "";

        if ($reason != "") {
            $reasonArray = explode(":", $reason);
            if ($reasonArray != null && is_array($reasonArray)) {
                if (isset($reasonArray[1])) {
                    $result = $reasonArray[1];
                }
            }
        }

        return $result;
    }
protected function _retrieveLast4DigitsFromReason ( $ reason ) { $ result = "" ; if ( $ reason != "" ) { $ reasonArray = explode ( ":" , $ reason ) ; if ( $ reasonArray != null && is_array ( $ reasonArray ) ) { if ( isset ( $ reasonArray [ 1 ] ) ) { $ result = $ reasonArray [ 1 ] ; } } } return $ result ; }
retrieve last 4 digits of card from the reason field
@param $reason
@return string
retrieve last 4 digits of card from the reason field