Commit 20a02668 by Tobin

dc

parent ef51177d
...@@ -661,10 +661,10 @@ class Api extends CI_Controller { ...@@ -661,10 +661,10 @@ 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", $dmyData = '{"auth_token":"cc731b6bd572eb452d85c96aaec77898","cardNumber":"5111111111111118",
// "expMonthYear":"0622","cardHolderName":"John","cvv":"100","cardType":"MasterCard"}'; "expMonthYear":"0622","cardHolderName":"John","cvv":"100","cardType":"MasterCard"}';
// $data['requestData'] = $this->encrypt($dmyData,$this->local_key,$this->local_iv); $data['requestData'] = $this->encrypt($dmyData,$this->local_key,$this->local_iv);
$settings = getSettings(); $settings = getSettings();
$merchant_iv = $settings['merchant_iv']; $merchant_iv = $settings['merchant_iv'];
......
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