query($sql); $row = $result->fetch_assoc(); $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'e-udyogaadhaar.com'; $mail->SMTPAuth = true; $mail->Username = 'noreply@e-udyogaadhaar.com'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("noreply@e-udyogaadhaar.com", "Eudyog Aadhaar"); $mail->addAddress("".$row['email_id'].""); $mail->isHTML(true); $mail->Subject = "Payment Successful For ".$row['form_name'].""; $mail->Body = '
REGISTRATION FOR MICRO, SMALL & MEDIUM ENTERPRISES
REGISTRATION FOR MICRO, SMALL & MEDIUM ENTERPRISES

Dear '.$row['applicant_name'].',

Your payment for '.$row['form_name'].' is successful.


NOTE : Final Certificate will be delivered within 2-3 working days.
Your order details are as follows :
Applicant Name:
'.strtoupper($row["applicant_name"]).'
Email:
'.strtoupper($row['email_id']).'
Mobile Number:
'.strtoupper($row['mobile_number']).'
Ammount Paid:
'.strtoupper($row['total_amount']).'
Payment Id:
'.$_SESSION['razorpay_payment_id'].'
Order Id:
'.$_SESSION['order_id'].'
Payment Status:
Paid

Regards,
Team Processing

1) Your application along with payment has been received and the same will be processed by our experts in next 24 - 48 working hours.
2) At the time of processing, one link will be sent to you for OTP collection. We collect OTP only through system generated automatic links, linked to clients application to reduce human intervention.
3) Normally certificate generation takes 5 - 10 working days. However due to restrictions placed by COVID-19, this may take longer than usual.
Your application has been queued up for processing and the final certificate will be sent on your registered email address within 7 - 10 working days.
Note : All payments received after 5.30 pm on weekends or on eve of a public holiday, processing of all such applications will be done on the next working day.
'; $mail->send(); $mail->ClearAllRecipients(); $mail->addAddress("noreply@e-udyogaadhaar.com"); $mail->isHTML(true); $mail->Subject = "Payment Received For ".$row["form_name"].""; $mail->Body = " APPLICANT NAME: ".$row["applicant_name"]."
EMAIL ID: ".$row['email_id']."
MOBILE NUMBER: ".$row['mobile_number']."
AMOUNT PAID: ".$row['total_amount']."
PAYMENT ID: ".$_SESSION['razorpay_payment_id']."
ORDER ID: ".$_SESSION['order_id']."
PAYMENT STATUS: Paid "; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } }else{ echo ''; } ?> SUCCESS | EUDYOGAADHAAR
query($sql); $row = $result->fetch_assoc(); } $id= $row['id']; $formName = 'UDYAM Registration,Re Registration'; $paymentId =$row['payment_id']; //select form id from cid// $sql_select_cid ="SELECT *FROM cid WHERE uid = '".$id."'; "; $result_cid = $conn->query($sql_select_cid); $row_cid = $result_cid->fetch_assoc(); $cid = $row_cid['cid']; $pageUrl = 'https://'.$_SERVER['HTTP_HOST'].'/'.$row['form_page_url'].'?cid='.$cid.''; ?> query($sql_selects); $rows = $result_select->fetch_assoc(); $organisation = $rows['type_of_organisation']; if(isset($organisation) && ($organisation=='Proprietorship')){ $msgDisp = 'Proprietor'; }elseif(isset($organisation) && ($organisation=='Partnership Firm')){ $msgDisp = 'Any Partner'; }elseif(isset($organisation) && ($organisation=='Limited Liability Partnership')){ $msgDisp = 'Any Partner'; }elseif(isset($organisation) && ($organisation=='Private Limited')){ $msgDisp = 'Any Director'; }elseif(isset($organisation) && ($organisation=='Public Limited')){ $msgDisp = 'Any Director'; }else{ $msgDisp = 'Any Authorized Person'; } if(isset($_POST['updateForm']) && ($_POST['updateForm']=='updateClientInfo')){ $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $link_2 = ''; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_2 = curl_exec($ch); curl_close($ch); $sql = " UPDATE msme_form SET aadhaar_number = '".$_POST["aadhaar_number"]."', upload_aadhaar_card_front ='".$link_2."' where order_id = '".$_SESSION['orderId']."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo''; // echo ""; } ?>
UPDATE FORM
"enctype="multipart/form-data">

PAYMENT SUCCESSFUL
ORDER DETAILS
APPLICANT NAME
EMAIL ID
MOBILE NUMBER
AMOUNT PAID
PAYMENT ID
ORDER ID
PAYMENT ID
ORDER ID
PAYMENT STATUS