Subversion Repositories SmartDukaan

Rev

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

Rev 11340 Rev 11414
Line 364... Line 364...
364
			$data = array();
364
			$data = array();
365
			$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeConfig);
365
			$data['response']=$this->recharge_model->getList($this->input->get(),$this->input->post(),$rechargeConfig);
366
			if(isset($data['response']['response']['recharge_paymentSubmit'][0]) && !empty($data['response']['response']['recharge_paymentSubmit'][0])){
366
			if(isset($data['response']['response']['recharge_paymentSubmit'][0]) && !empty($data['response']['response']['recharge_paymentSubmit'][0])){
367
				$paymentSubmit = $data['response']['response']['recharge_paymentSubmit'][0];
367
				$paymentSubmit = $data['response']['response']['recharge_paymentSubmit'][0];
368
				if(isset($paymentSubmit->response->isPaymentRedirect) && $paymentSubmit->response->isPaymentRedirect == 1){
368
				if(isset($paymentSubmit->response->isPaymentRedirect) && $paymentSubmit->response->isPaymentRedirect == 1){
369
					$image = base_url().'assets/images/loading.gif';
369
					$image = base_url().'/images/loading.gif';
370
					$location = $paymentSubmit->response->redirectUrl;
370
					$location = $paymentSubmit->response->redirectUrl;
371
					echo '<html><head><meta http-equiv="refresh" content="2;url='.$paymentSubmit->response->redirectUrl.'">
371
					echo '<html><head><meta http-equiv="refresh" content="2;url='.$paymentSubmit->response->redirectUrl.'">
372
  					<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
-
 
373
  					<title>Saholic Mobile Site: Redirecting to <'.$paymentSubmit->response->gatewayName.'> Payment Gateway</title>
372
  					<title>Saholic Mobile Site: Redirecting to <'.$paymentSubmit->response->gatewayName.'> Payment Gateway</title>
374
 					</head>
373
 					</head>
375
 						<body>
374
 						<body>
376
     					<div style="text-align:center; margin-top:200px;">Please wait while we redirect you to the Payment Gateway.</div>
375
     					<div style="text-align:center; margin-top:200px;">Please wait while we redirect you to the Payment Gateway.</div>
377
     					<div align="center" class="img">
376
     					<div align="center" class="img">
Line 397... Line 396...
397
         			$response = $this->mcurl->execute($url);
396
         			$response = $this->mcurl->execute($url);
398
         			$data['response'] = $response['ebs']['response'];
397
         			$data['response'] = $response['ebs']['response'];
399
         			$response = $this->magento_model->payment_submit($data);
398
         			$response = $this->magento_model->payment_submit($data);
400
         			if(isset($response) && !empty($response)){
399
         			if(isset($response) && !empty($response)){
401
         				$ebs = $response[0]->response;
400
         				$ebs = $response[0]->response;
402
         				$image = './assets/images/loading.gif';
-
 
403
         				$return_url = base_url().'ebs-pay-processing/?DR={DR}';
401
         				$return_url = base_url().'ebs-pay-processing/?DR={DR}';
404
         				echo '<html>
402
         				echo '<html>
405
						<head>
403
						<head>
406
						<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
-
 
407
						 <title>m.saholic.com: Redirecting to EBS Payment Page</title>
404
						 <title>m.saholic.com: Redirecting to EBS Payment Page</title>
408
						</head>
405
						</head>
409
						<body>
406
						<body>
410
						    <div style="text-align:center; margin-top:200px;">Please wait while we redirect you to the Payment Gateway.</div>
407
						    <div style="text-align:center; margin-top:200px;">Please wait while we redirect you to the Payment Gateway.</div>
411
						 <div align="center" class="img">
408
						 <div align="center" class="img">
412
						  <img title="loading" alt="loading" src="'.$image.'">
409
						  <img title="loading" alt="loading" src="'.base_url().'assets/images/loading.gif">
413
						 </div>
410
						 </div>
414
						 <div style="display:none">
411
						 <div style="display:none">
415
						  <form  method="post" action="'.$ebs->postAction.'" name="frmTransaction" id="frmTransaction">  
412
						  <form  method="post" action="'.$ebs->postAction.'" name="frmTransaction" id="frmTransaction">  
416
				           <!-- Account Id -->
413
				           <!-- Account Id -->
417
				           <input name="account_id" type="hidden" value="'.$ebs->account_id.'" />
414
				           <input name="account_id" type="hidden" value="'.$ebs->account_id.'" />
Line 424... Line 421...
424
				           <input name="name" type="hidden" value="'.$ebs->name.'" />
421
				           <input name="name" type="hidden" value="'.$ebs->name.'" />
425
				           <input name="address" type="hidden" value="'.$ebs->address.'" />
422
				           <input name="address" type="hidden" value="'.$ebs->address.'" />
426
				           <input name="city" type="hidden" value="'.$ebs->city.'" />
423
				           <input name="city" type="hidden" value="'.$ebs->city.'" />
427
				           <input name="state" type="hidden" value="'.$ebs->state.'" />
424
				           <input name="state" type="hidden" value="'.$ebs->state.'" />
428
				           <input name="postal_code" type="hidden" value="'.$ebs->postal_code.'" />
425
				           <input name="postal_code" type="hidden" value="'.$ebs->postal_code.'" />
429
				           <input name="country" type="hidden" value="IND"/>
426
				           <input name="country" type="hidden" value="'.$ebs->country.'"/>
430
				           <input name="email" type="hidden" value="'.$ebs->email.'" />
427
				           <input name="email" type="hidden" value="'.$ebs->email.'" />
431
				           <input name="phone" type="hidden" value="'.$ebs->phone.'" />
428
				           <input name="phone" type="hidden" value="'.$ebs->phone.'" />
432
				           <!-- Delivery Address -->
429
				           <!-- Delivery Address -->
433
				           <input name="ship_name" type="hidden" value="'.$ebs->ship_name.'" />
430
				           <input name="ship_name" type="hidden" value="'.$ebs->ship_name.'" />
434
				           <input name="ship_address" type="hidden" value="'.$ebs->ship_address.'" />
431
				           <input name="ship_address" type="hidden" value="'.$ebs->ship_address.'" />
435
				           <input name="ship_city" type="hidden" value="'.$ebs->ship_city.'" />
432
				           <input name="ship_city" type="hidden" value="'.$ebs->ship_city.'" />
436
				           <input name="ship_state" type="hidden" value="'.$ebs->ship_state.'" />
433
				           <input name="ship_state" type="hidden" value="'.$ebs->ship_state.'" />
437
				           <input name="ship_postal_code" type="hidden" value="'.$ebs->ship_postal_code.'" />
434
				           <input name="ship_postal_code" type="hidden" value="'.$ebs->ship_postal_code.'" />
438
				           <input name="ship_country" type="hidden" value="IND"/> 
435
				           <input name="ship_country" type="hidden" value="'.$ebs->ship_country.'"/> 
439
				           <input name="ship_phone" type="hidden" value="'.$ebs->ship_phone.'" />
436
				           <input name="ship_phone" type="hidden" value="'.$ebs->ship_phone.'" />
440
				           <input name="return_url" type="hidden" value="'.$ebs->return_url.'" />
437
				           <input name="return_url" type="hidden" value="'.$ebs->return_url.'" />
441
				           <input name="mode" value="'.$ebs->mode.'"/>
438
				           <input name="mode" value="'.$ebs->mode.'"/>
442
				           <input name="secure_hash" type="hidden" value="'.$ebs->secure_hash.'" />
439
				           <input name="secure_hash" type="hidden" value="'.$ebs->secure_hash.'" />
443
				           <input name="channel" type="hidden" value="'.$ebs->channel.'" />
440
				           <input name="channel" type="hidden" value="'.$ebs->channel.'" />