query($sql); $row = $result->fetch_assoc(); // $applicant_name = urlencode($row['applicant_name']); // $mobile_number = urlencode($row['mobile_number']); // $email_id = urlencode($row['email_id']); // $business_name = urlencode($row['business_name']); // $business_address = urlencode($row['business_address']); // $ch = curl_init('https://www.bytepaper.com/Cloud/Capture/Website/Capture.php?License=715783691&Name='.$applicant_name.'&Contact='.$mobile_number.'&Email='.$email_id.'&Website=MSME%20Registreration&Status=Paid&Category=Form&Form%20Name=MSME&Business%20Name='.$business_name.'&Business%20Address='.$business_address.''); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // $response = curl_exec($ch); // curl_close($ch); $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'udyamonlineregistration.org'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@udyamonlineregistration.org'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@udyamonlineregistration.org", "Udyam Registration"); $mail->addAddress("".$row['email_id'].""); $mail->isHTML(true); $mail->Subject = "Payment Successful For ".$row['form_name'].""; $mail->Body = " Dear ".$row['applicant_name'].",

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

Your order details are as follows:
APPLICANT NAME: ".strtoupper($row["applicant_name"])."
EMAIL ID: ".strtoupper($row['email_id'])."
MOBILE NUMBER: ".strtoupper($row['mobile_number'])."
AMOUNT PAID: ".strtoupper($row['total_amount'])."
PAYMENT ID: ".strtoupper($row["payment_id"])."
ORDER ID: ".strtoupper($row['order_id'])."
PAYMENT STATUS: PAID

Regards,
Team Processing
Note:
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 client's application to reduce human intervention.
3) Normally certificate generation takes 2-3 working days. However due to restrictions placed by COVID-19, this may take longer than usual.

Note: Due to system upgradation on account of financial year change, processing of certificates will be delayed.
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.
We expect your cooperation for the same.

For Order Status / Queries / Grievance Click Here "; $mail->send(); $mail->ClearAllRecipients(); $mail->addAddress("no-reply@udyamonlineregistration.org"); $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: ".$row["payment_id"]."
ORDER ID: ".$row['order_id']."
PAYMENT STATUS: Paid "; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } ?> SUCCESS | DL Registeration
query($sql); $row = $result->fetch_assoc(); ?>
PAYMENT SUCCESSFUL
ORDER DETAILS
APPLICANT NAME
EMAIL ID
MOBILE NUMBER
AMOUNT PAID
PAYMENT ID
ORDER ID
PAYMENT STATUS