!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.18.0. PHP/7.4.29 

uname -a: Linux ip-172-31-23-220 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/   drwxr-xr-x
Free 39.75 GB of 48.28 GB (82.35%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     entrol_ppp.php (46.24 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include 'header.php';

$u_id $_SESSION['user_id'];
if(!isset(
$u_id))
{
    
$package_id $_GET['id'];
     
$_SESSION['package_id'] = $package_id;
    
//die();
    
?>
    <script type="text/javascript">
    window.location.href = "<?php echo $baseurl?>login-new-login.php";
</script>
<?php
}
else
{

$_SESSION['package_id']='';

$s=$package_id=$val='';
if(isset(
$_GET['s']))
{
  
$s $_GET['s'];  
}
if(isset(
$_GET['id']))
{
    
$package_id $_GET['id'];
    
$val $_GET['id'];
}

?>
<style type="text/css">
   .swal-body {

                background-color: rgba(63,255,106,0.69);

                border: 3px solid red;

            }
.sweet-alert p {
    color: #797979;
    font-size: 16px;
    text-align: center;
    font-weight: 300;
    position: initial;
    text-align: left;
    float: none;
    margin: 0px 27px 0px;
    padding: 0;
    line-height: normal;
}
.sweet-alert .sa-icon {
    width: 80px;
    height: 66px;
}
.project-banner, .bnner_sec-new, .bnner_sec-rs.gallery {
            margin: 0 0 0px;
    }
    .login-box {
    margin: 0px auto;
    }
    .login-box {
    padding: 24px;
}
.login-reg {
    padding: 1px 0px;
}
button.btn.main-btn.btn-block.mb-3.skillactz-bluebg:hover {
    background: #fff;
    color: #1a57b3;
}
</style>
<body onload="getData();">
<section class="project-banner">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <div class="banner-sec">
                    <div class="projectheading btn_right">
                        <h3>ENROLL</h3>
                        <!-- <button class="btn backbtn" onclick="history.go(-1);">Back </button> -->
                      <a href="https://www.srishticampus.com/dashboard.php"> <button class="btn backbtn" >Back </button> </a>  

                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<section class="login-reg">
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <div class="login-box">
                    <div class="logo-lg">

                        <div class="enroll-desc">
                            <a href="index.php" class="d-block"><img src="images/sicsfullogo.png" alt="image"></a> 
                            <div class="enroll-img">
                                <img src="images/ent.jpg" alt="image">
                            </div>
                            <div class="enroll-captions">
                                <p class="ent-p" style="font-size: 22px;font-style: italic;"><span>Join Online</span> Training with Srishti Campus and<br>  we are here for you to build your own future for your better tomorrow... Enroll with us soon....
                                </p>


                            </div>
                        </div>
                        <!-- action="entroll_action.php" -->

                        <?php
                        $u_id 
$_SESSION['user_id'];
                        
$profile "SELECT * FROM user_details WHERE user_id='" $u_id "'";
                        
$profile mysqli_query($con$profile) or die("database error:" mysqli_error($con));
                        while (
$row $profile->fetch_assoc()) {



                            
$to 'srishticampusteam@srishtis.com';
                            
//$to ="srishticampusteam@srishtis.com";

                                
$subject "Srishti-Campus Entrol Page Loaded";
                                
$headers 'MIME-Version: 1.0' "\r\n";
                                
$headers .= 'Content-type: text/html; charset=iso-8859-1' "\r\n";
                                
$headers .= 'From: Srishti <srishticampusteam@gmail.com>' "\r\n";
                                
$output "<div style='font-size:15px;'>
                                <p>
                                Hi Team,
                                <br>
                                <br>
                                Someone is trying to make a payment through Srishti Campus website.
                                <br> 
                                Please see the details below:
                                <br>
                                Name:"
.$row['name'] ."
                                <br>
                                Contact No:"
.$row['phone']."
                                <br>
                                Email ID:"
.$row['email']."
                                <br>
                                <br>
                                Thanks
                                <br>
                                Srishti Campus Team
                                </p>
                                </div></br>"
;

                                
//$sent = mail($to, $subject, $output, $headers);

                            
?>
                            <div class="enroll-field">


    
    <script type="text/javascript">
        function getData()
        {
            var d = new Date();
            var n = d.getTime();
            var orderID = n +  '' +randomFromTo(0,1000);
            
            document.getElementById("OrderId").value = orderID;
            return true;
        }

        function randomFromTo(from, to){
            return Math.floor(Math.random() * (to - from + 1) + from);
        }


    </script>


    <div class="container">
        <div class="row">
            <div class="col-md-12">

                <?php

                ob_start
();
    
error_reporting(E_ALL);
    
$strNo rand(1,10000000000);
    
$strNo1 rand(1,1000000);

    
date_default_timezone_set('Asia/Calcutta');

    
$strCurDate date('d-m-Y');

    if( isset(
$_SERVER['HTTPS'] ) ) {
       
$host ='https';
    }else{
        
$host 'http';
    }

    
$admin_data file_get_contents("./worldline_AdminData.json");
    
$mer_array json_decode($admin_datatrue);

                
?>

               
                <form method="post" id="form">
                   <table class="table table-bordered table-hover">
                       <input type="hidden" name="mrctCode" value="<?php if(isset($mer_array['merchantCode'])){echo $mer_array['merchantCode'];} ?>"/></td>
                       <input type="hidden" name="txn_id" value="<?php echo $strNo?>"/></td>
                       <input type="hidden" id="myamount" name="amount" value=""/></td>
                    <input type="hidden" name="scheme" value="<?php if(isset($mer_array['merchantSchemeCode'])){echo $mer_array['merchantSchemeCode'];} ?>"/><input type="hidden" name="custID" value="<?php echo 'c'.$strNo1?>"/>
                    <input type="hidden" name="mobNo" value="<?php echo $row['phone']; ?>"/>
                    <input type="hidden" name="email" value="<?php echo $row['email']; ?>"/>
                    <input type="hidden" name="name" value="<?php echo $row['name']; ?>"/>
                    <input type="hidden" name="currency" value="<?php if(isset($mer_array['currency'])){echo $mer_array['currency'];} ?>"/>
                    <input type="hidden" name="SALT" value="<?php if(isset($mer_array['salt'])){echo $mer_array['salt'];} ?>"/>
                    <!-- <input type="hidden" name="returnUrl" value='<?php echo $host."://".$_SERVER["HTTP_HOST"].$_SERVER['SCRIPT_NAME'];?>'/> -->
                    <input type="hidden" name="returnUrl" value='https://www.srishticampus.com/entrol_tpl_procc.php?id=<?php echo $package_id;?>&uid=<?php echo $u_id;?>'/>

                    
                    <input type="hidden" name="accNo" value=""/>
                        <tr class="hid">
                            <td><label>Account Type</label></td>
                            <td>
                                <select class="form-control" name="accountType" >
                                    <option value="" >-- SELECT -- </option>
                                    <option value="Saving" >Saving</option>
                                    <option value="Current" >Current</option>
                                </select>
                            </td>
                        </tr>
                        <tr class="hid">
                            <td><label>Account Name</label></td>
                            <td><input type="text" name="accountName" value=""/></td>
                        </tr>
                        <tr class="hid">
                            <td><label>Aadhar Number</label></td>
                            <td><input type="text" name="aadharNumber" value=""/></td>
                        </tr>
                        <tr class="hid">
                            <td><label>IFSC Code</label></td>
                            <td><input type="text" name="ifscCode" value=""/></td>
                        </tr>
                        <tr class="hid">
                            <td><label>Debit Start Date</label></td>
                            <td><input type="date" name="debitStartDate" value=""/></td>
                        </tr>
                        <tr class="hid">
                            <td><label>Debit End Date</label></td>
                            <td><input type="date" name="debitEndDate" value=""/></td>
                        </tr>
                        <tr class="hid">
                            <td><label>maxAmount</label></td>
                            <td><input type="number" id="mymaxAmount" name="maxAmount" value=""/></td>
                        </tr>
                    <?php 
                    
if($mer_array['enableEmandate'] == 1){
                    
?>
                        <tr class="hid">
                            <td><label>Amount Type</label></td>
                            <td>
                                <select class="form-control" name="amountType" >
                                    <option value="M" selected="selected">Variable</option>
                                    <option value="F" >Fixed</option>
                                </select>
                            </td>
                        </tr>
                        <tr class="hid">
                            <td><label>Frequency</label></td>
                            <td>
                                <select class="form-control" name="frequency" >
                                    <option value="ADHO" selected="selected"> As and when presented </option>
                                    <option value="DAIL" > Daily </option>
                                    <option value="WEEK" > Weekly </option>
                                    <option value="MNTH" > Monthly </option>
                                    <option value="BIMN" > Bi- monthly </option>
                                    <option value="QURT" > Quarterly </option>
                                    <option value="MIAN" > Semi annually </option>
                                    <option value="YEAR" > Yearly </option>
                                </select>
                            </td>
                        </tr>
                    <?php }else{ ?>
                        <tr class="hid">
                            <td><label>Amount Type</label></td>
                            <td>
                                <select class="form-control" name="amountType" >
                                    <option value="" selected="selected">SELECT OPTION</option>
                                    <option value="M">Variable</option>
                                    <option value="F" >Fixed</option>
                                </select>
                            </td>
                        </tr>
                        <tr class="hid">
                            <td><label>Frequency</label></td>
                            <td>
                                <select class="form-control" name="frequency" >
                                    <option value="" selected="selected">SELECT OPTION</option>
                                    <option value="ADHO" > As and when presented </option>
                                    <option value="DAIL" > Daily </option>
                                    <option value="WEEK" > Weekly </option>
                                    <option value="MNTH" > Monthly </option>
                                    <option value="BIMN" > Bi- monthly </option>
                                    <option value="QURT" > Quarterly </option>
                                    <option value="MIAN" > Semi annually </option>
                                    <option value="YEAR" > Yearly </option>
                                </select>
                            </td>
                        </tr>
                    <?php ?>
                        <input type="hidden" name="cardNumber" value=""/>
                        <input type="hidden" name="expMonth" value=""/>
                        
                        <input type="hidden" name="expYear" value=""/>
                        <input type="hidden" name="cvvCode" value=""/>
                            <!-- <td colspan=2>
                               <input class="btn btn-danger" id="btnSubmit" type="submit" name="submit" value="Make Payment" />
                            </td> -->
                       
                <div id="worldline_embeded_popup"></div>
            </div>
        </div>
    </div>

    <!-- <form action="meTrnPay.php" id="action_entrol" method="post"> -->
        <table>
            
            

       <!--  </table>
    </form>
 -->


                               <!--  <form  method="post"  action="enroll_action.php"  name="myForm" class="needs-validation" novalidate> -->
                                    <div class="login-flds">

                                        <div class="form-group half-field">
                                            <!-- <input type="text" name="addField1" id="addField1"  /> -->
                                            <input type="text" class="form-control" placeholder="Full Name" id="fname" name="addField1" value="<?php echo $row['name']; ?>" required>
                                            <div class="invalid-feedback">
                                                Enter a Valid Name.
                                            </div>
                                        </div>
                                        <div class="form-group half-field">
                                            <!-- <input type="text" name="addField2" id="addField2"  /> -->
                                            <input type="text" class="form-control" placeholder="Contact No" id="phone"  name="addField2" value="<?php echo $row['phone']; ?>" required maxlength="10" pattern="[0-9]+" >
                                            <div class="invalid-feedback">
                                                Enter a Valid Phone Number.
                                            </div>

                                        </div>
                                        <div class="form-group half-field">
                                            <!-- <input type="text" name="addField3" id="addField3"  /> -->
                                            <input type="email" class="form-control" placeholder="Enter your email id here" id="Email" name="addField3" value="<?php echo $row['email']; ?>" required>
                                            <div class="invalid-feedback">
                                                Enter a Valid Email Id.
                                            </div>

                                        </div>
                                        <div class="form-group half-field">
                                            <!-- <input type="text" name="addField4" id="addField4"  /> -->
                                            <select class="form-control" id="select1" name="addField4" required>
                                                <option value="">Please Select</option><!---->

                                                <?php
                                                
//if(!empty($package_id)){ 

                                                
$package "SELECT * FROM course_details ";
                                                
$packageResult mysqli_query($con$package) or die("database error:" mysqli_error($con));

                                                while (
$packageResult1 mysqli_fetch_assoc($packageResult)) {
                                                    
?>    

                                                    <option value="<?php echo $packageResult1['id']; ?><?php if ($packageResult1['id'] == $package_id) { ?> selected <?php ?> title="<?php echo $packageResult1['cost']; ?>"> <?php echo $packageResult1['name']; ?> </option>
                                                <?php }// }  ?>

                                            </select>


                                       <!-- <input type="hidden" name="test" id="test" value="<?php echo $val?>" -->
                                        </div>

                                        <?php
                                        
if (!empty($package_id)) {
                                            
$cart1 "SELECT * FROM course_details WHERE id='" $package_id "'";
                                            
$cartResult1 mysqli_query($con$cart1) or die("database error:" mysqli_error($con));

                                            while (
$cart1 mysqli_fetch_assoc($cartResult1)) {
                                                
$amount=$cart1['cost']*100;
                                                
?>

                                                <div class="form-group Amount">
                                                   <!-- <input type="hidden" value="<?php //echo $amount; ?>"" id="amount" name="amount">   -->
                                                 <!--  <input type="hidden" value="100" id="amount" name="amount">  -->
                                                    <input type="text" class="form-control" placeholder="Amount" id="amount" name="amount_n" value="<?php echo $cart1['cost']; ?>" required >
                                                    <div class="invalid-feedback">
                                                        Enter Amount.
                                                    </div>

                                                </div>


                                                <div class="form-group Amount">
                                                  
                                                    <input type="text" style="margin-left: 10px;" class="form-control" placeholder="Enter Payable Amount" id="amount_required" name="amount" value="" required >
                                                    <div class="invalid-feedback">
                                                        Enter Payable Amount.
                                                    </div>

                                                </div>

                                                <?php
                                            
}
                                        } else {
                                            
?>  
                                            <input type="text" class="form-control" placeholder="Amount" id="amount" name="amount_n" value="<?php echo $cart1['cost']; ?>" required >
                                            <div class="invalid-feedback">
                                                Enter Amount.
                                            </div>
                                            <?php
                                        
}
                                        
?>


                                        <!-- <label class="containercheck">Pay Later
                                                <input type="radio" name="radio" id="Pay-Later" value="Pay-Later"  >
                                                <span class="checkmark"></span>
                                            </label> -->

                                            <div class="Pay-Later box" style="width: 100%;text-align: center;">
                                            <span style="color:white;">Our team will contact you soon to enroll the course</span>
                                        </div>



                                       <!--  <input type="hidden" name="test" value="<?php echo $val?>"> -->
                                        <div class="form-group message-here">
                                            <!-- <span style="color: white;">Please share us the payment details to confirm </span> -->
                                            <textarea class="form-control txtarea-enroll" style="margin-top: 5px;" placeholder="Remarks" rows="2" id="comment" name="addField5"></textarea>
                                            <div class="invalid-feedback">
                                                Remarks
                                            </div>

                                        </div>

                                        <input type="hidden" name="s" id="s" value="<?php echo $s?>">
                                        <input class="btn main-btn btn-block mb-3 skillactz-bluebg" style="color: blue;" id="btnSubmit" type="submit" name="submit" value="Pay Now" />
                                        <!-- <button type="submit"  name="submit" class="btn main-btn btn-block mb-3 skillactz-bluebg " id="clk">Pay Now</button> -->
                                    </div>

                                     </table>
                                     <!-- </form>
 -->
                                </form>
                            </div>
                        <?php ?>    

                    </div>

                </div>
            </div>
        </div>
    </div>
    <!-- Modal -->

</section>



<div class="container">
<div id="myModal" class="modal fade">
    <div class="modal-dialog modal-confirm">
        <div class="modal-content">
            <div class="modal-header justify-content-center">
                <div class="icon-box">
                    <i class="material-icons">&#xE876;</i>
                </div>
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            </div>
            <div class="modal-body">
               <div id="cont" style="margin-left: 50px;">
                Dear User,<br><br>

                Thank you for choosing Srishti Campus. We have received your Course package purchase request on our portal srishticampus.com <br><br>

                <p>Request Number : SICS<span id="requestnumber"><?php $i 1;
                        echo 
$i++ . '' $_REQUEST['l']; ?></span></p> 

                A confirmation message will be sent on completion of the registration process.<br><br>

                Thank you,<br> 
                Srishti Campus Team<br>
            </div>
                <div class="modal-footer">
                    <a href="dashboard.php"><button class="btn btn-primary">OK</button></a>
                </div>
            </div>
        </div>
    </div>
</div>
</div>



<script type="text/javascript">
    $(document).ready(function() {
      alert();
      $(".pageloader").hide();
        
    });
</script>




<script type="text/javascript">
    var x = $('#s').val();
    var content =$('#cont').text();
    
    if (x == 'Success') {
        // $("#myModal").modal();
        swal({
     title: "",
     type: "success",
     text: content,
       confirmButtonColor: "#00B4B4"
  },function() {
   
       window.location.href = "dashboard.php";
   
  });
    }
</script>  

<script type="text/javascript">


    (function () {
        'use strict';
        window.addEventListener('load', function () {
// Fetch all the forms we want to apply custom Bootstrap validation styles to
            var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
            var validation = Array.prototype.filter.call(forms, function (form) {
                form.addEventListener('submit', function (event) {
                    if (form.checkValidity() === false) {
                        event.preventDefault();
                        event.stopPropagation();
                    }
                    form.classList.add('was-validated');
                }, false);
            });
        }, false);
    })();
</script>
<script type="text/javascript">

    jQuery(document).ready(function ($) {
        
        $('#select1').change(function () {
            
            $('#amount').val($(this).find(':selected').attr('title'));

        });



    });
</script>

<script>
    $(document).ready(function () {


        var inputValue = 'Google-Pay';
            //alert(inputValue);
            if(inputValue=='Google-Pay')
            {
                //$("#txn_id").attr("required", "true");
            }
            else
            {
                //$("#txn_id").attr("required", false);
            }
            var targetBox = $("." + inputValue);
            $(".box").not(targetBox).hide();
            $(targetBox).show();



        $('input[type="radio"]').click(function () {
            var inputValue = $(this).attr("value");
            //alert(inputValue);
            if(inputValue=='Pay-Later')
            {
                $('form').attr('action', 'enroll_action.php');
                $("#amount_required").attr("required", false);
                document.getElementById("clk").innerHTML="Pay-Later";
                
            }
            
            if(inputValue=='Google-Pay')
            {
                //$("#txn_id").attr("required", "true");
            }
            else
            {
                //$("#txn_id").attr("required", false);
            }
            var targetBox = $("." + inputValue);
            $(".box").not(targetBox).hide();
            $(targetBox).show();
        });
$("#clk").click(function()
{
    // $(".pageloader").show();
})



    });
</script>
<?php 
}
?>
<?php 
include 'footer.php'?>
<?php

    
// ob_start();
    // error_reporting(E_ALL);
    // $strNo = rand(1,10000000000);
    // $strNo1 = rand(1,1000000);

    // date_default_timezone_set('Asia/Calcutta');

    // $strCurDate = date('d-m-Y');

    // if( isset($_SERVER['HTTPS'] ) ) {
    //    $host ='https';
    // }else{
    //     $host = 'http';
    // }

    // $admin_data = file_get_contents("./worldline_AdminData.json");
    // $mer_array = json_decode($admin_data, true);

    
if($_POST)
    {
        
$msg $_POST['msg'];
        
$response_msg explode("|"$msg);
        echo 
'<div class="alert alert-info">
            <strong>'
.$msg.'</strong>
        </div>'
;
        echo 
"<br><br>";

        
$res_msg explode("|",$_POST['msg']);
        
$arr_req = array(
            
"merchant" => [
                
"identifier" => $mer_array['merchantCode']
            ],
            
"transaction" => [ "deviceIdentifier" => "S","currency" => $mer_array['currency'],"dateTime" => $strCurDate,"token" => $res_msg[5],"requestType" => "S"]
        );

        
$finalJsonReq json_encode($arr_req);

        function 
callAPI($method$url$finalJsonReq){
           
$curl curl_init();
           switch (
$method){
              case 
"POST":
                 
curl_setopt($curlCURLOPT_POST1);
                 if (
$finalJsonReq)
                    
curl_setopt($curlCURLOPT_POSTFIELDS$finalJsonReq);
                 break;
              case 
"PUT":
                 
curl_setopt($curlCURLOPT_CUSTOMREQUEST"PUT");
                 if (
$finalJsonReq)
                    
curl_setopt($curlCURLOPT_POSTFIELDS$finalJsonReq);                              
                 break;
              default:
                 if (
$finalJsonReq)
                    
$url sprintf("%s?%s"$urlhttp_build_query($finalJsonReq));
           }
           
// OPTIONS:
           
curl_setopt($curlCURLOPT_URL$url);
           
curl_setopt($curlCURLOPT_HTTPHEADER, array(
              
'Content-Type: application/json',
           ));
           
curl_setopt($curlCURLOPT_RETURNTRANSFER1);
           
curl_setopt($curlCURLOPT_HTTPAUTHCURLAUTH_BASIC);
           
curl_setopt($curlCURLOPT_SSL_VERIFYHOSTFALSE);
           
curl_setopt($curlCURLOPT_SSL_VERIFYPEERFALSE);
           
// EXECUTE:
           
$result curl_exec($curl);
           if(!
$result){die("Connection Failure !! Try after some time.");}
           
curl_close($curl);
           return 
$result;
        }

        
$method 'POST';
        
$url "https://www.paynimo.com/api/paynimoV2.req";
        
$res_result callAPI($method$url$finalJsonReq);
        
$dualVerifyData json_decode($res_resulttrue);
    
?>
        <?php if(isset($res_msg)) { ?>
           
            <div class="container">
                <div class="row">
                    <div class="col-md-12">
                        <h2> Online Transaction Result : </h2>
                        <table class="table" border = "1" align="center" cellpadding="2" cellspacing="0" style="width: 50%;text-align: center;">
                        <thead>
                          <tr class="info">
                            <th>Field Name</th>
                            <th>Value</th>
                          </tr>
                        </thead>
                        <tbody>
                          <tr>
                            <td>Txn Status</td>
                            <td><?php echo $response_msg[0]; ?></td>
                          </tr>
                          <tr>
                            <td>Txn Msg</td>
                            <td><?php echo $response_msg[1]; ?></td>
                          </tr>
                          <tr>
                            <td>Txn Err Msg</td>
                            <td><?php echo $response_msg[2]; ?></td>
                          </tr>
                          <tr>
                            <td>Clnt Txn Ref</td>
                            <td><?php echo $response_msg[3]; ?></td>
                          </tr>
                          <tr>
                            <td>worldline Merchant Bank Cd</td>
                            <td><?php echo $response_msg[4]; ?></td>
                          </tr>
                          <tr>
                            <td>worldline Merchant Transaction ID</td>
                            <td><?php echo $response_msg[5]; ?></td>
                          </tr>
                          <tr>
                            <td>Txn Amt</td>
                            <td><?php echo $response_msg[6]; ?></td>
                          </tr>
                          <tr>
                            <td>Clnt Rqst Meta</td>
                            <td><?php echo $response_msg[7]; ?></td>
                          </tr>
                          <tr>
                            <td>worldline Merchant Transaction Time</td>
                            <td><?php echo $response_msg[8]; ?></td>
                          </tr>
                          <tr>
                            <td>Bal Amt</td>
                            <td><?php echo $response_msg[9]; ?></td>
                          </tr>
                          <tr>
                            <td>Card Id</td>
                            <td><?php echo $response_msg[10]; ?></td>
                          </tr>
                          <tr>
                            <td>Alias Name</td>
                            <td><?php echo $response_msg[11]; ?></td>
                          </tr>
                          <tr>
                            <td>Bank Transaction ID</td>
                            <td><?php echo $response_msg[12]; ?></td>
                          </tr>
                          <tr>
                            <td>Mandate Reg No</td>
                            <td><?php echo $response_msg[13]; ?></td>
                          </tr>
                          <tr>
                            <td>Token</td>
                            <td><?php echo $response_msg[14]; ?></td>
                          </tr>
                          <tr>
                            <td>Hash</td>
                            <td><?php echo $response_msg[15]; ?></td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                </div>        
            </div><br><br>
        <?php ?>

        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <h2> Dual-Verification : </h2>
                    <table class="table" border = "1" align="center" cellpadding="2" cellspacing="0" style="width: 50%;text-align: center;">
                    <thead>
                      <tr class="info">
                        <th>Field Name</th>
                        <th>Value</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td>Merchant Code</td>
                        <td><?php echo $dualVerifyData['merchantCode']; ?></td>
                      </tr>
                      <tr>
                        <td>Merchant Transaction Identifier</td>
                        <td><?php echo $dualVerifyData['merchantTransactionIdentifier']; ?></td>
                      </tr>
                      <tr>
                        <td>Token Identifier</td>
                        <td><?php echo $dualVerifyData['paymentMethod']['paymentTransaction']['identifier']; ?></td>
                      </tr>
                      <tr>
                        <td>Amount</td>
                        <td><?php echo $dualVerifyData['paymentMethod']['paymentTransaction']['amount']; ?></td>
                      </tr>
                      <tr>
                        <td>Message</td>
                        <td><?php echo $dualVerifyData['paymentMethod']['paymentTransaction']['errorMessage']; ?></td>
                      </tr>
                      <tr>
                        <td>Status Code</td>
                        <td><?php echo $dualVerifyData['paymentMethod']['paymentTransaction']['statusCode']; ?></td>
                      </tr>
                      <tr>
                        <td>Status Message</td>
                        <td><?php echo $dualVerifyData['paymentMethod']['paymentTransaction']['statusMessage']; ?></td>
                      </tr>
                      <tr>
                        <td>Date & Time</td>
                        <td><?php echo $dualVerifyData['paymentMethod']['paymentTransaction']['dateTime']; ?></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
            </div>        
        </div><br>

        <table class="table" border = "1" cellpadding="2" cellspacing="0" style="width: 50%;text-align: center;">
          <tr>
            <td><a href='<?php echo $host."://".$_SERVER["HTTP_HOST"].$_SERVER['SCRIPT_NAME']; ?>'>BACK TO PAYMENT PAGE</a><br></td>
            <td><a href='<?php echo $host."://".$_SERVER["HTTP_HOST"]."/php-checkoutjs/offline_verification.php"?>' target="_blank">GO TO OFFLINE-VERIFICATION</a></td>
            <td><a href='<?php echo $host."://".$_SERVER["HTTP_HOST"]."/php-checkoutjs/reconciliation.php"?>' target="_blank">GO TO RECONCILIATION</a></td>
            <td><a href='<?php echo $host."://".$_SERVER["HTTP_HOST"]."/php-checkoutjs/refund.php"?>' target="_blank">GO TO REFUND</a></td>
            <td><a href='<?php echo $host."://".$_SERVER["HTTP_HOST"]."/php-checkoutjs/emandate-si/mandate-verification.php"?>' target="_blank">GO TO MANDATE VERIFICATION</a></td>
            <td><a href='<?php echo $host."://".$_SERVER["HTTP_HOST"]."/php-checkoutjs/emandate-si/transaction-scheduling.php"?>' target="_blank">GO TO TRANSACTION SCHEDULING</a></td>
            <td><a href='<?php echo $host."://".$_SERVER["HTTP_HOST"]."/php-checkoutjs/emandate-si/transaction-verification.php"?>' target="_blank">GO TO TRANSACTION VERIFICATION</a></td>
            <td><a href='<?php echo $host."://".$_SERVER["HTTP_HOST"]."/php-checkoutjs/emandate-si/mandate-deactivation.php"?>' target="_blank">GO TO MANDATE DEACTIVATION</a></td>
            <td><a href='<?php echo $host."://".$_SERVER["HTTP_HOST"]."/php-checkoutjs/emandate-si/stop-payment.php"?>' target="_blank">GO TO STOP PAYMENT</a></td>
          </tr>
        </table><br>

    <?php
        
exit;
        }
    
?>

<html>

   <!--  <link rel="stylesheet" href="<?php echo $host."://".$_SERVER["HTTP_HOST"].'/php-checkoutjs/assets/css/bootstrap.min.css';?>">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" type="text/javascript"></script>
    <script src="<?php echo $host."://".$_SERVER["HTTP_HOST"].'/php-checkoutjs/assets/js/bootstrap.min.js';?>"></script> -->

<?php if($mer_array['enableEmandate'] == && $mer_array['enableSIDetailsAtMerchantEnd'] == 1){}elseif($mer_array['enableEmandate'] == && $mer_array['enableSIDetailsAtMerchantEnd'] != 1){ ?>
    <style type="text/css">
        .hid{
            display: none;
        }        
    </style>
<?php }else{ ?>
    <style type="text/css">
        .hid{
            display: none;
        }        
    </style>
<?php ?>

</head>
<body>
    
<?php 
if($mer_array['enableEmandate'] == 1){
?>
<script type="text/javascript">
    $(document).ready(function() {
      $(".pageloader").hide();
        $('#myamount').change(function() { 
            var amt = $(this).val();
            var maxamt = amt*2;
            $('#mymaxAmount').val(maxamt);
        });
    });
</script>
<?php ?>
<script type="text/javascript" src="https://www.paynimo.com/Paynimocheckout/server/lib/checkout.js"></script>
<script type="text/javascript">
    $(document).ready(function() {

        $('#select1').change(function () {
            
            $('#amount').val($(this).find(':selected').attr('title'));

        });

$(".pageloader").hide();
//alert();
        $("#btnSubmit").click(function(e){

            e.preventDefault();
            var str = $("#form").serialize();

            //alert(str);
            
            $.ajax({
                    type: 'POST',
                    cache: false,
                    data: str,
                    url: "payment_request.php",                                            
                    success: function (response)
                    {
                        var obj = JSON.parse(response);
                        function handleResponse(res)
                        {
                            if (typeof res != 'undefined' && typeof res.paymentMethod != 'undefined' && typeof res.paymentMethod.paymentTransaction != 'undefined' && typeof res.paymentMethod.paymentTransaction.statusCode != 'undefined' && res.paymentMethod.paymentTransaction.statusCode == '0300') {
                        // success block
                            } else if (typeof res != 'undefined' && typeof res.paymentMethod != 'undefined' && typeof res.paymentMethod.paymentTransaction != 'undefined' && typeof res.paymentMethod.paymentTransaction.statusCode != 'undefined' && res.paymentMethod.paymentTransaction.statusCode == '0398') {
                        // initiated block
                            } else {
                        // error block
                            }   
                        };

                        var configJson = 
                        {
                            'tarCall': false,
                            'features': {
                                'showPGResponseMsg': true,
                                'enableNewWindowFlow': <?php if($mer_array['enableNewWindowFlow'] == 1){ echo 'true'; }else{ echo 'false'; } ?>,   //for hybrid applications please disable this by passing false
                                'enableAbortResponse': true,
                                'enableExpressPay': <?php if($mer_array['enableExpressPay'] == 1){ echo 'true'; }else{ echo 'false'; } ?>,  //if unique customer identifier is passed then save card functionality for end  end customer
                                'enableInstrumentDeRegistration': <?php if($mer_array['enableInstrumentDeRegistration'] == 1){ echo 'true'; }else{ echo 'false'; } ?>,  //if unique customer identifier is passed then option to delete saved card by end customer
                                'enableMerTxnDetails': true,
                                'siDetailsAtMerchantEnd': <?php if($mer_array['enableSIDetailsAtMerchantEnd'] == 1){ echo 'true'; }else{ echo 'false'; } ?>,
                                'enableSI': <?php if($mer_array['enableEmandate'] == 1){ echo 'true'; }else{ echo 'false'; } ?>,
                                'hideSIDetails': <?php if($mer_array['hideSIConfirmation'] == 1){ echo 'true'; }else{ echo 'false'; } ?>,
                                'enableDebitDay': <?php if($mer_array['enableDebitDay'] == 1){ echo 'true'; }else{ echo 'false'; } ?>,
                                'expandSIDetails': <?php if($mer_array['expandSIDetails'] == 1){ echo 'true'; }else{ echo 'false'; } ?>,
                                'enableTxnForNonSICards': <?php if($mer_array['enableTxnForNonSICards'] == 1){ echo 'true'; }else{ echo 'false'; } ?>,
                                'showSIConfirmation': <?php if($mer_array['showSIConfirmation'] == 1){ echo 'true'; }else{ echo 'false'; } ?>,
                                'showSIResponseMsg': <?php if($mer_array['showSIResponseMsg'] == 1){ echo 'true'; }else{ echo 'false'; } ?>,
                            },
                            
                            'consumerData': {
                                'deviceId': 'WEBSH2',
                                //possible values 'WEBSH1', 'WEBSH2' and 'WEBMD5'
                                //'debitDay':'10',
                                'token': obj['hash'],
                                'returnUrl': obj['data'][12],
                                /*'redirectOnClose': 'https://www.tekprocess.co.in/MerchantIntegrationClient/MerchantResponsePage.jsp',*/
                                'responseHandler': handleResponse,
                                'paymentMode': '<?php if(isset($mer_array['paymentMode'])){ echo $mer_array['paymentMode']; } ?>',
                                'checkoutElement': '<?php if($mer_array['embedPaymentGatewayOnPage'] == "1"){ echo "#worldline_embeded_popup"; } else { echo ""; } ?>',
                                'merchantLogoUrl': '<?php if(isset($mer_array['logoURL'])){ echo $mer_array['logoURL']; } ?>',  //provided merchant logo will be displayed
                                'merchantId': obj['data'][0],
                                'currency': obj['data'][15],
                                'consumerId': obj['data'][8],  //Your unique consumer identifier to register a eMandate/eNACH
                                'consumerMobileNo': obj['data'][9],
                                'consumerEmailId': obj['data'][10],
                                'txnId': obj['data'][1],   //Unique merchant transaction ID
                                'items': [{
                                    'itemId': obj['data'][14],
                                    'amount': obj['data'][2],
                                    'comAmt': '0'
                                }],
                                'cartDescription': '}{custname:'+obj['data'][13],
                                'merRefDetails': [
                                    {"name": "Txn. Ref. ID", "value": obj['data'][1]}
                                ],
                                'customStyle': {
                                    'PRIMARY_COLOR_CODE': '<?php if(isset($mer_array['primaryColor'])){ echo $mer_array['primaryColor']; } ?>',   //merchant primary color code
                                    'SECONDARY_COLOR_CODE': '<?php if(isset($mer_array['secondaryColor'])){ echo $mer_array['secondaryColor']; } ?>',   //provide merchant's suitable color code
                                    'BUTTON_COLOR_CODE_1': '<?php if(isset($mer_array['buttonColor1'])){ echo $mer_array['buttonColor1']; } ?>',   //merchant's button background color code
                                    'BUTTON_COLOR_CODE_2': '<?php if(isset($mer_array['buttonColor2'])){ echo $mer_array['buttonColor2']; } ?>'   //provide merchant's suitable color code for button text
                                },
                                'accountNo': obj['data'][11],    //Pass this if accountNo is captured at merchant side for eMandate/eNACH
                                'accountHolderName': obj['data'][16],  //Pass this if accountHolderName is captured at merchant side for ICICI eMandate & eNACH registration this is mandatory field, if not passed from merchant Customer need to enter in Checkout UI.
                                'ifscCode': obj['data'][17],        //Pass this if ifscCode is captured at merchant side.
                                'accountType': obj['data'][18],  //Required for eNACH registration this is mandatory field
                                'debitStartDate': obj['data'][3],
                                'debitEndDate': obj['data'][4],
                                'maxAmount': obj['data'][5],
                                'amountType': obj['data'][6],
                                'frequency': obj['data'][7]  //  Available options DAIL, WEEK, MNTH, QURT, MIAN, YEAR, BIMN and ADHO
                            }
                        };
                        
                        //console.log(configJson);       

                        $.pnCheckout(configJson);
                        if(configJson.features.enableNewWindowFlow)
                        {
                            pnCheckoutShared.openNewWindow();
                        }
                    }
            });

        });
    });
</script>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0119 ]--