public function signup() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $macc_fb_id = addslashes($_POST['macc_fb_id']); $macc_last_name = addslashes($_POST['macc_last_name']); $macc_first_name = addslashes($_POST['macc_first_name']); $macc_gender = addslashes($_POST['macc_gender']); $macc_dob = addslashes($_POST['macc_dob']); $macc_email = addslashes($_POST['macc_email']); $macc_phone = addslashes($_POST['macc_phone']); $macc_foto = addslashes($_POST['macc_foto']); //extra kirim dob dan card nr $VRO = VRCustModel::addauto(); if ($_GET['test']) { pr($VRO); } $response = (string) $VRO->ARTSHeader->Response['ResponseCode']; if ($_GET['test']) { echo $response; } if ($response != "Rejected") { //echo $response; $json = VRCustMapper::kerjakan($VRO, "", 1); echo json_encode($json); die; } else { $id = (string) $VRO->CustomerBody->CustomerID; $fmsg = $VRO->CustomerBody->FailureMessage; $arr = array(); foreach ($fmsg as $msg) { $arr[] = (string) $msg; } $json['status_code'] = 0; $json['macc_id'] = $id; $json['status_message'] = Efiwebsetting::getData('Constant_detail_used'); $json['ll_message'] = $arr; echo json_encode($json); die; } }