Commit f89f9144 by Tobin

url update

parent 7018f12a
...@@ -300,7 +300,7 @@ class Api extends CI_Controller { ...@@ -300,7 +300,7 @@ class Api extends CI_Controller {
public function payNow($auth_token='',$amount=0,$booking_id='',$event_id=''){ public function payNow($auth_token='',$amount=0,$booking_id='',$event_id=''){
if(empty($auth_token) || empty($amount) || empty($booking_id)){ if(empty($auth_token) || empty($amount) || empty($booking_id)){
redirect('http://localhost:4200/failure'); redirect('https://projects.nuvento.com/failure');
} }
$payData = array('auth_token'=>$auth_token,'amount'=>$amount,'booking_id'=>$booking_id); $payData = array('auth_token'=>$auth_token,'amount'=>$amount,'booking_id'=>$booking_id);
$res = $this->Api_model->payNow($payData); $res = $this->Api_model->payNow($payData);
...@@ -309,7 +309,7 @@ class Api extends CI_Controller { ...@@ -309,7 +309,7 @@ class Api extends CI_Controller {
$this->paymentGateway($amount,$res['transaction_id'],$event_id,$booking_id); $this->paymentGateway($amount,$res['transaction_id'],$event_id,$booking_id);
} }
else{ else{
redirect('http://localhost:4200/failure?event_id='.$eventid); redirect('https://projects.nuvento.com/failure?event_id='.$eventid);
} }
} }
...@@ -331,7 +331,7 @@ class Api extends CI_Controller { ...@@ -331,7 +331,7 @@ class Api extends CI_Controller {
$booking_id = $last_id[3]; $booking_id = $last_id[3];
$this->Api_model->update_payment($response,$transaction_id,$lastid,'1') ; $this->Api_model->update_payment($response,$transaction_id,$lastid,'1') ;
redirect('http://localhost:4200/bookingdetails?booking_id='.$booking_id); redirect('https://projects.nuvento.com/bookingdetails?booking_id='.$booking_id);
} }
} }
...@@ -354,7 +354,7 @@ class Api extends CI_Controller { ...@@ -354,7 +354,7 @@ class Api extends CI_Controller {
$booking_id = $last_id[3]; $booking_id = $last_id[3];
$this->Api_model->update_payment($response,$transaction_id,$lastid,'0'); $this->Api_model->update_payment($response,$transaction_id,$lastid,'0');
redirect('http://localhost:4200/failure?event_id='.$eventid); redirect('https://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