Commit 898e3522 by Tobin

t : api issue fix

parent 03f46315
...@@ -699,18 +699,7 @@ class Api extends CI_Controller { ...@@ -699,18 +699,7 @@ class Api extends CI_Controller {
} }
public function addCard(){ public function addCard(){
// $data = (array) json_decode(file_get_contents('php://input')); $data = (array) json_decode(file_get_contents('php://input'));
// $dmyData = '{"auth_token":"cc731b6bd572eb452d85c96aaec77898","cardNumber":"5111111111111118",
// "expMonthYear":"0622","cardHolderName":"John","cvv":"100","cardType":"MasterCard",
// "cardMode":"DD"}';
// $dmyData = '{"amount":"1","event_id":"123","auth_token":"cc731b6bd572eb452d85c96aaec77898",
// "booking_id":"TO1911145705","cardData":{"cardNumber":"5111111111111118",
// "expMonthYear":"0622","cardHolderName":"John","cvv":"100","cardType":"MasterCard",
// "cardMode":"DD"}}';
// $data['requestData'] = $this->encrypt($dmyData,$this->local_key,$this->local_iv);
// pr(urlencode(base64_encode($data['requestData'])));
$reqData = $this->decrypt($data['requestData'],$this->local_key,$this->local_iv); $reqData = $this->decrypt($data['requestData'],$this->local_key,$this->local_iv);
if(empty($reqData) || empty($reqData = json_decode($reqData,true)) || if(empty($reqData) || empty($reqData = json_decode($reqData,true)) ||
!isset($reqData['auth_token']) || empty($reqData['auth_token'])){ !isset($reqData['auth_token']) || empty($reqData['auth_token'])){
......
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