Commit 216297a3 by Tobin

dummy changes in remove card

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