Advertisement
setiadi

Untitled

Dec 4th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.47 KB | None | 0 0
  1. $tenant_id = '11';
  2.             $ref_id = '-99';
  3.             $ref_code = '-';
  4.             $uuid = $input['uuid'];
  5.             $upline_id = $input['upline_id'];
  6.             $sponsor_id = $input['sponsor_id'];
  7.             $member_name = strtoupper($input['nama']);
  8.             $member_handphone_no = trim($input['no_hp']);
  9.             $identity_no = $input['no_ktp'];
  10.             $address = $input['alamat'];
  11.             $province_id = $input['provinsi'];
  12.             $city_id = $input['kota_kab'];
  13.             $district_id = $input['kecamatan'];
  14.             $sub_district_id = $input['kelurahan'];
  15.             $postal_code = $input['kode_pos'];
  16.             $gender = $input['jenis_kelamin'];
  17.             $place_of_birth = strtoupper($input['tempat_lahir']);
  18.             $date_of_birth = date("Ymd", strtotime($input['tanggal_lahir']));
  19.             $stock_point_code = $input['stock_point'];
  20.  
  21.             $properties = [
  22.                 'origin' => 'web',
  23.                 'ds_id' => $ref_code
  24.             ];
  25.            
  26.             $params = [
  27.                 "mobile_phone" => $member_handphone_no,
  28.                 "name" => $member_name,
  29.                 "stock_point" => $stock_point_code,
  30.                 "upline_id" => $upline_id,
  31.                 "sponsor_id" => $sponsor_id,
  32.                 "indentity_no" => $identity_no,
  33.                 "pob" => $place_of_birth,
  34.                 "dob" => $date_of_birth,
  35.                 "address" => $address,
  36.                 "sub_district" => $sub_district_id,
  37.                 "district" => $district_id,
  38.                 "post_code" => $postal_code,
  39.                 "city" => $city_id,
  40.                 "province" => $province_id,
  41.                 "reference" => "web_standalone"
  42.             ];
  43.  
  44.             \Leaf\Util\QueueUtil::send('K13','',$tenant_id, $params, $properties, 'web2erp', $ref_id);
  45.  
  46.             return \Response::json(["status" => "OK"]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement