Commit caa326a2 by Jansa Jose

payment

parent f50c384b
......@@ -1143,11 +1143,11 @@ 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']));
$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();
$request = load_curl('https://api.iugu.com/v1/customers',$create_customer);
$customer = json_decode($request);
print_r($customer); echo "<pre><br>";
//print_r($customer); echo "<pre><br>";
$this->Patient_model->update_profile($patient_data['patientid'],array('customer_id' => $customer->id ));
$patient_data['pt_customer_id'] = $customer->id;
}
......
......@@ -535,8 +535,8 @@ function update_profile($id,$data)
$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