Commit 3c92c0e3 by Tobin

dc

parent 278ec95a
......@@ -606,9 +606,13 @@ class Api extends CI_Controller {
$this->errorResponse('893','No Data Found');
}
$cardData = "'".json_encode(json_decode(json_encode($resp->txnCardDetails),true))."'";
pr($cardData);
$cardData = '[{"tokenNumber":"3473","cardNumber":"511111XXXXXX1118","expMonthDate":"0622","cardProcessor":"MASTERCARD","cardType":"DD","customerName":"Basanta
Mahunta"},{"tokenNumber":"3482","cardNumber":"512340XXXXXX008","expMonthDate":"0622","cardProcessor":"MASTERCARD","cardType":"CC","customerName":"Basanta
Mahunta"},{"tokenNumber":"3373","cardNumber":"512345XXXXXX0008","expMonthDate":"0521","cardProcessor":"MASTERCARD","cardType":"CC","customerName":"Test
Master"}]';
pre($cardData);
$resp = $this->encrypt($cardData,$this->local_key,$this->local_iv);
pr($resp);
$this->response(array('saved_cards'=>$resp));
}
......
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