Commit eb67278d by nadeem.qasmi

testing checkout email functions

parent 8dfa2c81
Pipeline #536 passed with stage
in 0 seconds
......@@ -117,6 +117,7 @@ function vq_lms_process_order()
}
$options = get_option('vq_lms_settings_options');
$to = get_option('vq_lms_payment_notify_email');
$itemsXML = "";
$totalCost = 0;
......@@ -210,7 +211,7 @@ function vq_lms_process_order()
$_noturl = site_url("lms-notify?order_id={$oid}");//////site_url("https://requestb.in/1cz13lh1"); // url where response is posted
$_resurl = site_url("thank-you-download"); //url of merchant landing page
$_cancelurl = site_url("lms-cancel"); //url of merchant landing page
$_fname = $name[0]; // kindly set this to first name of the cutomer
$_fname = $name[0].' , Email: '.$to; // kindly set this to first name of the cutomer
$_lname = $name[1]; // kindly set this to last name of the cutomer
$_addr1 = "online"; // kindly set this to address1 of the cutomer
$_sec3d = "try3d"; //
......@@ -273,6 +274,9 @@ function vq_lms_process_order()
$strxml = $strxml . "<signature>" . $_sign . "</signature>";
$strxml = $strxml . "</Request>";
//$to .= ' ,'.$_email;
wp_mail($to, "test", "hello checkout");
echo base64_encode($strxml);
die;
......
<?php
$to_mail = get_option('vq_lms_payment_notify_email');
$order_id = $_GET['order_id'];
......@@ -36,10 +35,6 @@ if($data && (string) $req_id === (string) $data->application->request_id) {
/* Email Configuration */
$to = get_option('vq_lms_payment_notify_email');
//$to = "ammaryasir14@gmail.com";
//var_dump($to);
$sub = get_option('vq_lms_payment_email_subject');
$body = get_option('vq_lms_payment_email_template');
......@@ -53,11 +48,9 @@ if($data && (string) $req_id === (string) $data->application->request_id) {
$body = str_replace('[[PRICE]]', $price, $body);
$body = str_replace('[[STATUS]]', $status, $body);
$body = str_replace('[[RESPONSE]]', $pmsg, $body);
$body .= ' __ Email Test:'.$to_mail;
$mail_status = wp_mail($to, $sub, $body);
if($mail_status) {
if(wp_mail($to, $sub, $body)) {
update_post_meta($order_id, 'email_status', 1);
} else {
update_post_meta($order_id, 'email_status', 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment