Commit c7907f34 by Tobin

dc

parent f89f9144
......@@ -23,7 +23,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own.
|
*/
$config['base_url'] = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']);
$config['base_url'] = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']);
/*
|--------------------------------------------------------------------------
......
......@@ -300,7 +300,7 @@ class Api extends CI_Controller {
public function payNow($auth_token='',$amount=0,$booking_id='',$event_id=''){
if(empty($auth_token) || empty($amount) || empty($booking_id)){
redirect('https://projects.nuvento.com/failure');
redirect('http://projects.nuvento.com/failure');
}
$payData = array('auth_token'=>$auth_token,'amount'=>$amount,'booking_id'=>$booking_id);
$res = $this->Api_model->payNow($payData);
......@@ -309,7 +309,7 @@ class Api extends CI_Controller {
$this->paymentGateway($amount,$res['transaction_id'],$event_id,$booking_id);
}
else{
redirect('https://projects.nuvento.com/failure?event_id='.$eventid);
redirect('http://projects.nuvento.com/failure?event_id='.$eventid);
}
}
......@@ -331,7 +331,7 @@ class Api extends CI_Controller {
$booking_id = $last_id[3];
$this->Api_model->update_payment($response,$transaction_id,$lastid,'1') ;
redirect('https://projects.nuvento.com/bookingdetails?booking_id='.$booking_id);
redirect('http://projects.nuvento.com/bookingdetails?booking_id='.$booking_id);
}
}
......@@ -354,7 +354,7 @@ class Api extends CI_Controller {
$booking_id = $last_id[3];
$this->Api_model->update_payment($response,$transaction_id,$lastid,'0');
redirect('https://projects.nuvento.com/failure?event_id='.$eventid);
redirect('http://projects.nuvento.com/failure?event_id='.$eventid);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment