Example #1
0
 public function payment_post()
 {
     //checkIsLoggedIn($this);
     $arrOptions['userId'] = $this->post('userId');
     $arrOptions['code'] = $this->post('code');
     $isSaved = CI_User::addPaymentCode($arrOptions);
     $status = 500;
     $return["result"] = "NOOK";
     if ($isSaved) {
         $status = 200;
         $return["result"] = "OK";
     }
     $this->response($return, $status);
 }