Commit 8746cbd2 by Jansa Jose

payment

parent 57e2a573
...@@ -1144,6 +1144,7 @@ else ...@@ -1144,6 +1144,7 @@ else
if(empty($patient_data['pt_customer_id'])) if(empty($patient_data['pt_customer_id']))
{ {
$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']); $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']);
print_r($create_customer);echo"<br>";
$request = load_curl('https://api.iugu.com/v1/customers',$create_customer); $request = load_curl('https://api.iugu.com/v1/customers',$create_customer);
$customer = json_decode($request); $customer = json_decode($request);
print_r($customer); echo "<br>"; print_r($customer); echo "<br>";
......
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