Файловый менеджер - Редактировать - /home/d46091/udyogaadhaar.net/blog-post/images/698279/payu-failure.php.tar
Назад
home/d46091/udyogaadhaar.net/payu/payu-failure.php 0000644 00000013610 15026607372 0015644 0 ustar 00 <?php include_once '../config.php'; session_start(); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; ini_set('display_errors', 1); ini_set('display_startup_errors', 1); date_default_timezone_set('Asia/Kolkata'); $date=date('d-m-Y H:i:s'); error_reporting(E_ALL); require '../vendor/autoload.php'; define('PAYU_RESPONSE_MERCHANT_KEY', $_POST['key']); define('PAYU_RESPONSE_STATUS', $_POST['status']); define('PAYU_RESPONSE_TXN_ID', $_POST['txnid']); define('PAYU_RESPONSE_FIRST_NAME', $_POST['firstname']); define('PAYU_RESPONSE_EMAIL', $_POST['email']); define('PAYU_RESPONSE_MID', $_POST['udf1']); define('PAYU_RESPONSE_AMOUNT', $_POST['amount']); define('PAYU_RESPONSE_PRODUCT_INFO', $_POST['productinfo']); define('PAYU_RESPONSE_HASH', $_POST['hash']); if (PAYU_RESPONSE_STATUS != 'success') { $orderId = $_POST["txnid"]; $sql ="SELECT * FROM msme_form WHERE order_id = '".$_POST["txnid"]."'"; $result = $conn->query($sql); $row = $result->fetch_assoc(); // Mailer $payment_link = 'https://udyogaadhaar.net/Payment.php?cmpnMail='.base64_encode($orderId); $mail = new PHPMailer(true); try { $mail->isSMTP(); //$mail->SMTPDebug = 2; $mail->CharSet = 'UTF-8'; $mail->Host = 'udyogaadhaar.net'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@udyogaadhaar.net'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom('no-reply@udyogaadhaar.net', 'udyogaadhaar.net'); $mail->addAddress($row["email_id"]); $mail->isHTML(true); $mail->Subject = "⚠️Ref : Your Payment Failed For ".$row['form_name']." Form"; $mail->Body = ' <div style="width:100%; float:left;margin:0;padding:0; background-color: #eee;letter-spacing: 0.3px;"> <div style="width:80%;background-color:#fff;margin:auto;"> <div style="width:100%;float:left;margin:auto;background-color:#fff;"> <div style="width:100%;float:left;margin:auto;background-image:linear-gradient(#67c57e,#94cea2);text-align: center;border-bottom: 8px solid #ff8c00;border-bottom-left-radius: 10px;border-bottom-right-radius: 10px;"> <span style="display:block;color: #000; font-size:20px;font-weight:700;padding:20px 10px ;font-family:sans-serif;">MSME / UDYAM REGISTRATION</span> </div> </div> <div style="width:100%;float:left;background-color:#fff;text-align: justify;"> <div style="text-align: justify;width:80%;margin:auto;background:#fff;padding:0px 10px;"> <p style="text-align: justify;color:#343a40; font-size:17px;font-weight:lighter;padding:10px 0px 0px;font-family:sans-serif;"><b>Dear '.$row['applicant_name'].',</b></p> <p style="text-align: justify;color:#343a40;font-size:15px;padding:0px 0px 0px;font-family:sans-serif;"> This mail is in reference to the <b>'.$row['form_name'].'</b> submitted by you on '.$date.'. </p> <p style="text-align: justify;color:#343a40;font-size:15px;padding:0px 0px 0px;font-family:sans-serif;color:red;">Processing of your <b>'.$row['form_name'].'</b> Application Is on hold, due to NON PAYMENT of fees.</p> <p style="text-align: justify;color:#343a40;font-size:15px;padding:0px 0px 0px;font-family:sans-serif;">We request you to complete the payment at the earliest to enable us to process your application.</p> <p style="color:#2c498d;font-size:15px;padding:0px 0px 0px;font-family:sans-serif;font-weight: bold;">Click on the link below to make payment.</p> <div style="width:80%; background:#fff;float:left;margin:auto;padding: 10px 0px;"> <button style="background-color:#ff8c00;padding:8px 15px;border: none;"><a href="'.$payment_link.'" style="text-decoration:none; color:#fff;font-size:15px;font-family:sans-serif;font-weight: bold;">Pay Here</a></button> </div> <div style="width:80%; background:;float:left;margin:auto;text-align: justify;"> <p style="color:#343a40;font-size:16px;padding:0px 0px 8px;font-family:sans-serif;font-weight: bold;">Regards,<br> Team Processing,<br> </div> </div> </div> </div> </div> '; $mail->send(); if($mail){ $data = [ 'email_id' => $mail->Username, 'recipient_email' => $row['email_id'], 'amount' => $row['total_amount'], 'business' => 'MSME', 'mail_type' => 'Payment Failed', 'mailform' => 'sent' ]; $apiUrl = 'https://crm11.techlounge.co.in/api/mail-data-logs.php'; $ch = curl_init($apiUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); $response = curl_exec($ch); curl_close($ch); }else{ $data = [ 'email_id' => $mail->Username, 'recipient_email' => $row['email_id'], 'amount' => $row['total_amount'], 'business' => 'MSME', 'mailform' => 'notsent' ]; $apiUrl = 'https://crm11.techlounge.co.in/api/mail-data-logs.php'; $ch = curl_init($apiUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); $response = curl_exec($ch); curl_close($ch); } echo "Payment Failed"; } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } } ?> home/d46091/udyogaadhaar.net/payu-email/payu-failure.php 0000644 00000011440 15026635667 0016740 0 ustar 00 <?php require_once("config-payu.php"); include_once('../vendor/autoload.php'); session_start(); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; session_start(); ini_set('display_errors', 0); ini_set('display_startup_errors', 0); error_reporting(E_ALL); date_default_timezone_set('Asia/Kolkata'); define('PAYU_RESPONSE_MERCHANT_KEY', $_POST['key']); define('PAYU_RESPONSE_STATUS', $_POST['status']); define('PAYU_RESPONSE_TXN_ID', $_POST['txnid']); define('PAYU_RESPONSE_FIRST_NAME', $_POST['firstname']); define('PAYU_RESPONSE_EMAIL', $_POST['email']); define('PAYU_RESPONSE_MID', $_POST['udf1']); define('PAYU_RESPONSE_AMOUNT', $_POST['amount']); define('PAYU_RESPONSE_PRODUCT_INFO', $_POST['productinfo']); define('PAYU_RESPONSE_HASH', $_POST['hash']); if (PAYU_RESPONSE_STATUS != 'success') { $sql = "SELECT * FROM msme_form WHERE applicant_name = '".$_POST['firstname']."' AND email_id = '".$_POST['email']."' ORDER BY email_id DESC"; $result = $conn->query($sql); $row = $result->fetch_assoc(); $clientId = $row['id']; /* Select Cid Table */ // $sql_cid = "SELECT * FROM cid WHERE form_name = '".$row['form_name']."' AND uid = '".$row['id']."'"; // $result_cid = $conn->query($sql_cid); // $row_cid = $result_cid->fetch_assoc(); // $cId = $row_cid['cid']; $payment_link = 'https://pmny.in/vrb0P6D2UoEk'; echo "Payment Failed"; // $mail = new PHPMailer(true); // try { // $mail->isSMTP(); // $mail->Host = 'msmeregistrar.org'; // $mail->SMTPAuth = true; // $mail->Username = 'no-reply@msmeregistrar.org'; // $mail->Password = 'freeDOM@611#'; // $mail->SMTPSecure = 'tls'; // $mail->Port = 587; // $mail->setFrom("no-reply@msmeregistrar.org", "MSME registrar"); // $mail->addAddress("".$_POST['email'].""); // $mail->isHTML(true); // $mail->Subject = "Payment Failed For ".$row['form_name'].""; // $mail->Body = ' // <div style="width:100%;margin:0;padding:0;float:left; font-family:sans-serif;letter-spacing: 0.5px;background:#eee;"> // <div style="width:80%;margin:auto;background:#fff;"> // <div style="width:100%;float:left;margin:auto;background: #f26c13;padding:20px 0px 20px;text-align: center"> // <span style="display:block;color: #fff; font-size:20px;font-weight:700;">MSME / UDYAM REGISTRATION</span> // </div> // <div style="width:100%;float:left;margin:auto;background:#fff0e6;padding:0px 0px 0px;text-align: justify;"> // <div style="width:80%;margin:auto;background:#fff0e6;"> // <div style="width:100%;margin:10PX;text-align:left;"> // <span style="font-family:sans-serif;color:#000;font-size:17px;">Dear <b>'.$_POST['firstname'].',</b></span> // <p style="font-family:sans-serif;color:black;font-weight:bold;font-size:16px;">This mail is in reference to the Print Udyam Application submitted by you on '.date('d-m-Y h:i:sa').'.</p> // <p style="font-family:sans-serif;color:red;font-weight:bold;font-size:16px;">Processing of your Print Udyam Application Is on hold, due to NON PAYMENT of fees.</p> // <p style="font-family:sans-serif;color:black;font-weight:bold;font-size:16px;">We request you to complete the payment at the earliest to enable us to process your application. Click on the link below to make payment // <br> <div style="width:80%; background:#fff0e6;float:left;margin:auto;padding: 10px 0px;"> // <button style="text-align:left;background-color:#f26c13;padding:10px 20px;border: none;"><a href="'.$payment_link.'" style="text-decoration:none; color:#fff;font-size:15px;font-family:sans-serif;">Pay Here</a></button> // </div> // <div style="width:80%; background:#fff0e6;float:left;margin:auto;text-align: justify;"> // <p style="text-align:left;color:#343a40;font-size:16px;padding:0px 0px 8px;font-family:sans-serif;font-weight: bold;">Regards,<br> // Team Processing, // </div> // </div> // </div> // </div> // </div> // </div> // '; // $mail->send(); // $mail->ClearAllRecipients(); // $mail->addAddress("no-reply@msmeregistrar.org"); // $mail->isHTML(true); // $mail->Subject = "Payment Failed For MSME/UDYAM REGISTRATION"; // $mail->Body = " // Payment Failed // "; // $mail->send(); // // header ('location: ../success.php'); // } // catch (Exception $e) { // echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; // } } ?>