Commit e7583df0 by Tobin

t : status for booking summary api

parent 6e219030
......@@ -331,10 +331,10 @@ class Api extends CI_Controller {
$res = $this->Api_model->payNow($payData);
if($res['status']==1){
$this->paymentGateway($amount,$res['transaction_id'],$event_id,$booking_id,$res['custData'],$cardData);
$this->paymentGateway($amount,$res['transaction_id'],$event_id,$booking_id,$res['custData'],$cardData);
}
else{
redirect($redUrl.'failure?event_id='.$eventid);
redirect($redUrl.'failure?event_id='.$eventid);
}
}
......
......@@ -706,6 +706,17 @@ class Webservice extends CI_Controller {
}
}
public function flight_revalidate(){
$data = (array)json_decode(file_get_contents('php://input'));
$data['auth_token'] = $this->auth_token;
$res = $this->Webservice_model->flight_revalidate($data);
if($res['status'] == 1){
$this->response($res['data']);
}else{
$this->errorResponse($res['code'],$res['message']);
}
}
......
......@@ -867,6 +867,33 @@ class Validation_app_model extends CI_Model {
'message' => 'Target Field is null or empty'
)
),
'session_id' => array(
'required' => array(
'code' => 'ER02',
'message' => 'Session Id is null or empty'
)
),
),
'flight_fare_rules'=>array(
'auth_token' => array(
'required' => array(
'code' => 'ER02',
'message' => 'User Id is null or empty'
)
),
'fare_source_code' => array(
'required' => array(
'code' => 'ER02',
'message' => 'Fare Source Code is null or empty'
)
),
'session_id' => array(
'required' => array(
'code' => 'ER02',
'message' => 'Session Id is null or empty'
)
),
),
);
......
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