Subversion Repositories SmartDukaan

Rev

Rev 20614 | Rev 20636 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20614 Rev 20633
Line 80... Line 80...
80
			$this->layout = 'innerpages';
80
			$this->layout = 'innerpages';
81
			$url = Configure::read ( 'saholicapihost' ) . 'address?isLoggedIn=true&privateDealUser=true&userId=' . $suserId;
81
			$url = Configure::read ( 'saholicapihost' ) . 'address?isLoggedIn=true&privateDealUser=true&userId=' . $suserId;
82
			$response = $this->make_request ( $url, null );
82
			$response = $this->make_request ( $url, null );
83
			$user_name = "";
83
			$user_name = "";
84
			$user_contact = "";
84
			$user_contact = "";
85
			//Statically set to false for all orders
-
 
86
			//$codAvailable = $cartskus['cod'];
85
			$codAvailable = $cartskus['cod'];
87
			$codAvailable = false;
86
			//$codAvailable = false;
88
			$this->Session->write('cod', $codAvailable);
87
			$this->Session->write('cod', $codAvailable);
89
			$creditTicketSize = 0;
88
			$creditTicketSize = 0;
90
			
89
			
91
			$creditorAssociated = $response ['creditorAssociated'];
90
			$creditorAssociated = $response ['creditorAssociated'];
92
			if(!isset($response ['userSanctions'])){
91
			if(!isset($response ['userSanctions'])){
Line 401... Line 400...
401
			if(isset($_COOKIE['txn_comp'])) {
400
			if(isset($_COOKIE['txn_comp'])) {
402
				unset($_COOKIE['txn_comp']);
401
				unset($_COOKIE['txn_comp']);
403
			}
402
			}
404
			
403
			
405
			if($cod==1){
404
			if($cod==1){
406
				$url = Configure::read('saholicapihost').'order?payment_option=3000&isLoggedIn=true&privateDealUser=true&userId='.$suserId.'&id='.$scartId.'&email='.$semailId.'&addressid='.$addressid;
405
				$url = Configure::read('saholicapihost').'order?payment_option=COD~3000&isLoggedIn=true&privateDealUser=true&userId='.$suserId.'&id='.$scartId.'&email='.$semailId.'&addressid='.$addressid;
407
			 	if($pincode!='0'){
406
			 	if($pincode!='0'){
408
					$url = $url.'&pinCode='.$pincode;
407
					$url = $url.'&pinCode='.$pincode;
409
				}
408
				}
410
				$orderCreationResponse = $this->post_cartinfo_request($url, null);
409
				$orderCreationResponse = $this->post_cartinfo_request($url, null);
411
				//{"response":{"success":true,"redirectUrl":"pay-success?paymentId=998593"}}
410
				//{"response":{"success":true,"redirectUrl":"pay-success?paymentId=998593"}}