Commit a6f907a5 by Jansa Jose

payment

parent cec05bf7
......@@ -1144,10 +1144,10 @@ else
if(empty($patient_data['pt_customer_id']))
{
$create_customer = array('email'=>$patient_data['pt_email'],'name'=>decrypt_data($patient_data['pt_name']),'cpf_cnpj'=>$patient_data['pt_cpf'],'zip_code' => decrypt_data($patient_data['pt_zip_code']),'street'=>decrypt_data($patient_data['pt_street_add']),'number'=>decrypt_data($patient_data['pt_number']),'complement'=>decrypt_data($patient_data['pt_complement']));
print_r($create_customer);echo"<br>";exit();
//print_r($create_customer);echo"<br>";exit();
$request = load_curl('https://api.iugu.com/v1/customers',$create_customer);
$customer = json_decode($request);
print_r($customer); echo "<br>";
//print_r($customer); echo "<br>";
$this->Patient_model->update_profile($patient_data['patientid'],array('customer_id' => $customer->id ));
$patient_data['pt_customer_id'] = $customer->id;
}
......
......@@ -513,7 +513,7 @@ function update_profile($id,$data)
{
//$date_of_birth = $data['dob'];
//unset($data['dob']);
print_r($data);exit();
//print_r($data);exit();
$this->db->where('tbl_registration.id',$id);
if($this->db->update('tbl_registration',$data))
......@@ -535,8 +535,8 @@ print_r($data);exit();
$result = array('status' => 'error');
}
echo $this->db->last_query();
print_r($result);exit();
//echo $this->db->last_query();
//print_r($result);exit();
return $result;
}
......
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