Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
2.7 kB
2
Indexable
Never
$payment_details = array('yosi_patient_id'=>$patient_ref_id,'invite_id'=>$invite_id,'emr_practice_id'=>$emr_practice_id);
            $payment_details['emr_patient_id'] = $patient_id;
            $base_url = !empty($config['_GLOBAL_CONFIG']['api_url']) ? $config['_GLOBAL_CONFIG']['api_url'] : '';
 
            $yosi_patient_id = !empty($params['yosi_patient_id']) ? $params['yosi_patient_id'] : '';
            $appointment_id = !empty($params['appointment_id']) ? $params['appointment_id'] : '';
            $patient_email = !empty($params['patient_email']) ? $params['patient_email'] : '';
            $patient_phone = !empty($params['patient_phone']) ? $params['patient_phone'] : '';
            $patient_first_name = !empty($params['patient_first_name']) ? $params['patient_first_name'] : '';
            $patient_last_name = !empty($params['patient_last_name']) ? $params['patient_last_name'] : '';
            $patient_full_name = !empty($params['patient_full_name']) ? $params['patient_full_name'] : '';
            $patient_dob = !empty($params['patient_dob']) ? $params['patient_dob'] : '';
            $reminder = !empty($params['reminder']) ? $params['reminder'] : '';
            $yosi_appointment_id = !empty($params['yosi_appointment_id']) ? $params['yosi_appointment_id'] : '';
            $payment_details = !empty($params['payment_details']) ? $params['payment_details'] : '';
            $request_id = !empty($params['request_id']) ? $params['request_id'] : '';
            $staff_id = !empty($params['staff_id']) ? $params['staff_id'] : '';
            $emr_id = !empty($params['emr_id']) ? $params['emr_id'] : '';


            $shell_params =
            "practice_id=".$practice_id.        
            "&invite_id=".$invite_id.          
            "&yosi_patient_id=".$yosi_patient_id.    
            "&appointment_id=".$appointment_id.     
            "&patient_email=".$patient_email.      
            "&patient_phone=".$patient_phone.      
            "&patient_first_name=".$patient_first_name. 
            "&patient_last_name=".$patient_last_name.  
            "&patient_full_name=".$patient_full_name.  
            "&patient_dob=".$patient_dob.        
            "&reminder=".$reminder.           
            "&yosi_appointment_id=".$yosi_appointment_id.
            "&payment_details=".$payment_details.    
            "&request_id=".$request_id.         
            "&staff_id=".$staff_id.           
            "&emr_id=".$emr_id;            


            shell_exec("curl POST -d params=" . $this->cryptography_obj->encode($shell_params) . " " . $base_url . "dashboard/payment/v1/paymentUpdate > /dev/null 2>/dev/null &");
Leave a Comment