Subversion Repositories SmartDukaan

Rev

Rev 11426 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11426 Rev 20609
Line 30... Line 30...
30
	
30
	
31
 
31
 
32
	function getCheckoutDetails($get=array(),$post=array(),$module=array())
32
	function getCheckoutDetails($get=array(),$post=array(),$module=array())
33
	{
33
	{
34
 
34
 
35
		log_message('debug',"[GETCHECKOUTDETAILS] POST ".print_r($post,1));
-
 
36
		$output =array();
35
		$output =array();
37
		if(isset($module) and !empty($module))
36
		if(isset($module) and !empty($module))
38
		{
37
		{
39
			if(isset($module['header']) and !empty($module['header']))
38
			if(isset($module['header']) and !empty($module['header']))
40
			{
39
			{
Line 79... Line 78...
79
		//$this->curlURL('products','get',$get);
78
		//$this->curlURL('products','get',$get);
80
		$responses = $this->mcurl->execute();
79
		$responses = $this->mcurl->execute();
81
		//print_r($responses);
80
		//print_r($responses);
82
		if(isset($responses) and !empty($responses))
81
		if(isset($responses) and !empty($responses))
83
		$responses = $this->parser->parse_response($responses,$module);
82
		$responses = $this->parser->parse_response($responses,$module);
84
		log_message('debug',"[GETCHECKOUTDETAILS] Response ".print_r($responses,1));
-
 
85
		
83
		
86
		return $responses;
84
		return $responses;
87
	}
85
	}
88
function curlURL($configurl=null,$methodtype='get',$parameter=array())
86
function curlURL($configurl=null,$methodtype='get',$parameter=array())
89
{
87
{
Line 112... Line 110...
112
		if(!isset($parameter) || empty($parameter))
110
		if(!isset($parameter) || empty($parameter))
113
			{$params =$this->parser->prepareParams('',$display,$configurl);}
111
			{$params =$this->parser->prepareParams('',$display,$configurl);}
114
		 if($configurl == 'payment_process'){
112
		 if($configurl == 'payment_process'){
115
		 	$methodtype = 'get';
113
		 	$methodtype = 'get';
116
		 }
114
		 }
-
 
115
		 if($configurl == 'payment_process1'){
-
 
116
		 	$methodtype = 'get';
-
 
117
		 }
117
		 if($configurl == 'pickup' || $configurl == 'emi'){
118
		 if($configurl == 'pickup' || $configurl == 'emi'){
118
		 	$methodtype = 'get';
119
		 	$methodtype = 'get';
119
		 	$params = array();
120
		 	$params = array();
120
		 }
121
		 }
121
		 if($configurl == 'carts'){
122
		 if($configurl == 'carts'){