MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b1536/scapebox.co.in/book/
File Upload :
Current < : /hermes/bosweb/b1536/scapebox.co.in/book/payment.php

 
    <? include 'header.php';
    include 'config.php'; 
    
     if(isset($_POST['amount']))

	 
	 {
	 echo	 $name =$_GET['name'];
		 $email =$_GET['email'];
		 $password =$_GET['pws'];
		 $phone =$_GET['phone'];
		 $plan =$_GET['plan'];
		 $plan_amount =$_GET['amount'];
		 $created =$_GET['created_by'];
		 $address = $_GET['address'];
		 $user_id = $_GET['user_id'];

		 
		 
		 $sql ="INSERT INTO tbl_user_online(User_id,name,plan,plan_amount,created_by,email,password,phone,address) VALUES('$user_id','$name','$plan','$plan_amount','$created','$email','$password','$phone','$address')";
		 
	 	if(mysqli_query($mysqli,$sql))
	 	{
		         
              header('Location: pay.php?amount='.$plan_amount.'&name='.$name."&email=".$email."&phone=".$phone."&plan=".$plan."&user_id=".$user_id);

              
	 	}
		 
		 
		 
	 }
    
    
    ?>
    
    
    

    <div class="main-content">
      
      <!-- Page Heading -->
      <div class="page-heading">
        <div class="container">
          <div class="row">
            <div class="col-lg-12">
              <h1>Payment Page</h1>
              <span><a href="index.php">Home</a>Pay</span>
            </div>
          </div>
        </div>
      </div>

      
      <!-- Services Page -->
      <section class="services-page">
        <div class="container">
          <div class="row">
            <div class="col-lg-12">
              <div id="tabs">
                <div class="row">
                  <div class="col-lg-12">
                    <div class="services-sidebar">
                      
                  </div>
                  <div class="col-lg-12">
                    <section class='tabs-content'>
                      <article id='tabs-1'>
                        <img src="images/blog-item-01.png" alt="">
                        <div class="down-content">
                           
                            <h3> Please Confirm Your Details  Before you Pay </h3>
                          <div class="accordions">
                            <p class="accordion">  
                              <?php 
                            //  $amount ='1';
                              $amount = $_GET['amount'];
                              $name = $_GET['name'];
                              $email = $_GET['email'];
                              $phone = $_GET['phone'];
                              $plan = $_GET['plan'];
                              $user_id = $_GET['user_id'];

                              
                              ?>
 <table border = "0" width = "100%" style="padding-left:30px;"> 
         
         <tr>
            <td>
               <table border = "1" width = "100%">
                 
                  <tr>
                     <td>Name</td>
                     <td><?php echo $name; ?></td>
                  </tr>
                  <tr>
                     <td>Plan</td>
                     <td><?php echo $plan; ?></td>
                  </tr>
                  <tr>
                     <td>Plan Amount</td>
                     <td><?php echo $amount; ?></td>
                  </tr>
                  <tr>
                     <td>Phone</td>
                     <td><?php echo $phone; ?></td>
                  </tr>
                   <tr>
                     <td>Email</td>
                     <td><?php echo $email; ?></td>
                  </tr>
                   <tr>
                     
                  </tr>
               </table>
            </td>
         </tr>
         
      </table>
      <br>
<form action="https://smartdizibiz.com/sucess.php" method="get" style="text-align:center;"> 
<script
    src="https://checkout.razorpay.com/v1/checkout.js"
    data-key="rzp_live_cihVbLe2nVB43M" // Enter the Key ID generated from the Dashboard
    data-amount="<?php echo $amount.'00'; ?>" // Amount is in currency subunits. Default currency is INR. Hence, 50000 refers to 50000 paise
    data-currency="INR"
  
    data-captured="1"

    data-buttontext="Pay Now"
    data-name="<?php echo $name; ?>"
    data-description="Smart Dizi Biz"
    data-image="https://smartdizibiz.com/images/logo_new.png"
    data-prefill.name="<?php echo $name; ?>"
    data-prefill.email="<?php echo $email; ?>"
    data-prefill.contact="<?php echo $phone; ?>"
    data-theme.color="#F37254"
></script>
<input type="hidden" custom="Hidden Element" name="user_id" value="<?php echo $user_id; ?>">
<input type="hidden" custom="Hidden Element" name="plan" value="<?php echo $plan; ?>">
<input type="hidden" custom="Hidden Element" name="amount" value="<?php echo $amount; ?>">
<input type="hidden" custom="Hidden Element" name="email" value="<?php echo $email; ?>">
<input type="hidden" custom="Hidden Element" name="name" value="<?php echo $name; ?>">
<input type="hidden" custom="Hidden Element" name="phone" value="<?php echo $phone; ?>">


</form>
                            </p>
                          </div>
                          
                        </div>
                      </article>
                       
                       
                      
                      
                      
                    </section>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>
      

    </div>
    
   <? include 'footer.php'; ?>