protected function isApprove($response){
        $result = false;

        if($response->getResponseCode() == CheckoutApi_Client_Constant::RESPONSE_CODE_APPROVED
            || $response->getResponseCode()== CheckoutApi_Client_Constant::RESPONSE_CODE_APPROVED_RISK ){
            $result = true;
        }

        return $result;
    }
protected function isApprove($response){
        $result = false;

        if($response->getResponseCode() == CheckoutApi_Client_Constant::RESPONSE_CODE_APPROVED
            || $response->getResponseCode()== CheckoutApi_Client_Constant::RESPONSE_CODE_APPROVED_RISK ){
            $result = true;
        }

        return $result;
    }
protected function isApprove ( $ response ) { $ result = false ; if ( $ response -> getResponseCode ( ) == CheckoutApi_Client_Constant :: RESPONSE_CODE_APPROVED || $ response -> getResponseCode ( ) == CheckoutApi_Client_Constant :: RESPONSE_CODE_APPROVED_RISK ) { $ result = true ; } return $ result ; }
Check if response is approve
return boolean
Check if response is approve return boolean