Commit 216297a3 by Tobin

dummy changes in remove card

parent 643548ea
...@@ -818,15 +818,16 @@ class Api extends CI_Controller { ...@@ -818,15 +818,16 @@ class Api extends CI_Controller {
curl_setopt($ch,CURLOPT_HTTPHEADER,array('Content-Type: application/x-www-form-urlencoded')); curl_setopt($ch,CURLOPT_HTTPHEADER,array('Content-Type: application/x-www-form-urlencoded'));
$result = curl_exec($ch); $result = curl_exec($ch);
if(empty($result)){ if(!empty($result)){
$this->errorResponse('892','Invalid Card Data'); // $this->errorResponse('892','Invalid Card Data');
$this->response(array('message'=>'SUCCESS'));
} }
$resp = $this->decryptePayData($merchant_iv,$merchant_key,$result); // $resp = $this->decryptePayData($merchant_iv,$merchant_key,$result);
if(empty($resp) || isset($resp->status) || $resp->status != 'SUCCESS'){ // if(empty($resp) || isset($resp->status) || $resp->status != 'SUCCESS'){
$this->errorResponse('893','No Card Found'); $this->errorResponse('893','No Card Found');
} // }
$this->response(array('message'=>$resp->statusMessage)); // $this->response(array('message'=>$resp->statusMessage));
} }
function hotelBooking(){ function hotelBooking(){
......
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