Commit 57e2a573 by Jansa Jose

payment

parent b81fcdf6
......@@ -1146,6 +1146,7 @@ else
$create_customer = array('email'=>$patient_data['pt_email'],'name'=>$patient_data['pt_name'],'cpf_cnpj'=>$patient_data['pt_cpf'],'zip_code' => $patient_data['pt_zip_code'],'street'=>$patient_data['pt_street_add'],'number'=>$patient_data['pt_number'],'complement'=>$patient_data['pt_complement']);
$request = load_curl('https://api.iugu.com/v1/customers',$create_customer);
$customer = json_decode($request);
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($id);exit();
print_r($data);exit();
$this->db->where('tbl_registration.id',$id);
if($this->db->update('tbl_registration',$data))
......
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