Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $tenant_id = '11';
- $ref_id = '-99';
- $ref_code = '-';
- $uuid = $input['uuid'];
- $upline_id = $input['upline_id'];
- $sponsor_id = $input['sponsor_id'];
- $member_name = strtoupper($input['nama']);
- $member_handphone_no = trim($input['no_hp']);
- $identity_no = $input['no_ktp'];
- $address = $input['alamat'];
- $province_id = $input['provinsi'];
- $city_id = $input['kota_kab'];
- $district_id = $input['kecamatan'];
- $sub_district_id = $input['kelurahan'];
- $postal_code = $input['kode_pos'];
- $gender = $input['jenis_kelamin'];
- $place_of_birth = strtoupper($input['tempat_lahir']);
- $date_of_birth = date("Ymd", strtotime($input['tanggal_lahir']));
- $stock_point_code = $input['stock_point'];
- $properties = [
- 'origin' => 'web',
- 'ds_id' => $ref_code
- ];
- $params = [
- "mobile_phone" => $member_handphone_no,
- "name" => $member_name,
- "stock_point" => $stock_point_code,
- "upline_id" => $upline_id,
- "sponsor_id" => $sponsor_id,
- "indentity_no" => $identity_no,
- "pob" => $place_of_birth,
- "dob" => $date_of_birth,
- "address" => $address,
- "sub_district" => $sub_district_id,
- "district" => $district_id,
- "post_code" => $postal_code,
- "city" => $city_id,
- "province" => $province_id,
- "reference" => "web_standalone"
- ];
- \Leaf\Util\QueueUtil::send('K13','',$tenant_id, $params, $properties, 'web2erp', $ref_id);
- return \Response::json(["status" => "OK"]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement