query($sql)) { die('There was an error running the query [' . $conn->error . ']'); } else { $_SESSION["form_id"] = $conn->insert_id; $form_name = urlencode($_POST["form_name"]); $ch = curl_init('https://crm2.techlounge.co.in/api/registration-form-submission.php?formId='.$_SESSION["form_id"].'&vendor=TTG&business=CATLOUGE&website='.$crm_website.'&amount='.$product_price.'&status=Unpaid&name='.$applicant_name.'&mobile='.$mobile_number.'&email='.$email_id.'&state='.$state.'&formName='.$form_name.'&solNumber='.urlencode($_POST["sol_number"]).''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $_SESSION["panel_form_id_2"] = $response; $ch = curl_init('https://crm11.techlounge.co.in/api/registration-form-submission.php?formId='.$_SESSION["form_id"].'&vendor=TTG&business=CATLOUGE&website='.$crm_website.'&amount='.$product_price.'&status=Unpaid&name='.$applicant_name.'&mobile='.$mobile_number.'&email='.$email_id.'&state='.$state.'&formName='.$form_name.'&solNumber='.urlencode($_POST["sol_number"]).''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $_SESSION["panel_form_id_11"] = $response; setcookie("panel_form_id_2", $response, time() + (86400 * 30), "/"); // Payment Gateway Redirection if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'CASHFREE') { include_once('./cashfree/request.php'); } else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'ATOM') { include_once('./atom/submit.php'); } else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'PAYU') { include_once('./payu/payu-request.php'); }else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'RAZORPAY') { include_once('./razorpay/razorpay-submit.php'); } // mail // function generateRandomInvoice($length = 10) { // $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; // $charactersLength = strlen($characters); // $randomInvoice = ''; // for ($i = 0; $i < $length; $i++) { // $randomInvoice .= $characters[rand(0, $charactersLength - 1)]; // } // return $randomInvoice; // } // $rand = generateRandomInvoice(); // $host_name = 'gemregistrationportal.org'; // $payUrl = 'https://pmny.in/oI2qyU6Q5LeY'; // $payUrl = 'https://'.$host_name.'/Payment.php?uFinVsiD='.$rand.'&name='.$_POST['applicant_name'].'&mobileNumber='.$_POST['mobile_number'].'&emailId='.$_POST['email_id']; // $mail = new PHPMailer(true); // try { // $mail->isSMTP(); // $mail->Host = ''.$url1.''; // $mail->SMTPAuth = true; // $mail->Username = 'no-reply@'.$url1.''; // $mail->Password = 'freeDOM@611#'; // $mail->SMTPSecure = 'tls'; // $mail->Port = 587; // $mail->setFrom('no-reply@'.$url1.'', "$website"); // $mail->addAddress("".$_POST["email_id"].""); // $mail->isHTML(true); // $mail->Subject = "Ref : Your ".$_POST["form_name"].""; // $mail->Body = ' //
Regards,
// Team Processing
// www.gemregistrationportal.org
//