BLACKSITE
:
216.73.216.232
:
178.16.136.184 / jsdp.in
:
Linux in-mum-web1273.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
:
/
home
/
u759409306
/
public_html
/
Upload File:
files >> /home/u759409306/public_html/donate-sub.php
<?php require_once('admin/config.php'); if(isset($_POST['submit'])){ $name = $_POST['name']; $contact = $_POST['contact']; $email = $_POST['email']; $state=$_POST['state']; $pan=$_POST['pan']; $address=$_POST['address']; $price = $_POST['payment']; $purpose = "Donation"; $amount = $price; $sql = $db->query("INSERT INTO `donate`(`name`, `contact`, `email`, `state`,`pan`, `address`, `price`, `date`) VALUES ('$name','$contact','$email','$state','$pan','$address','$price',NOW())"); $link = 'https://jsdp.in/donation.php?id='.$id.'&name='.$name.'&contact='.$contact.'&email='.$email.'&state='.$state.'&pan='.$pan.'&address='.$address.'&amount='.$amount; echo $link; if($sql){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://www.instamojo.com/api/1.1/payment-requests/'); curl_setopt($ch, CURLOPT_HEADER, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-Api-Key:b1e54306881ce67dab13cda5c6e526c4", "X-Auth-Token:023d3060715da6cead28cec88b3905ab")); $payload = Array( 'purpose' => $purpose, 'amount' => $amount, 'phone' => $contact, 'buyer_name' => $name, 'redirect_url' => 'https://jsdp.in/donation.php', 'send_email' => true, 'send_sms' => true, 'email' => 'info@jsdp.in', 'allow_repeated_payments' => false ); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($payload)); $response = curl_exec($ch); if($response === false){ handle_error("Error occurred while making API request: " . curl_error($ch)); } curl_close($ch); $response = json_decode($response); if(isset($response->payment_request->longurl)) { $_SESSION['TID'] = $response->payment_request->id; header("Location: " . $response->payment_request->longurl); exit(); } else { handle_error("Error occurred while processing payment request."); } } else { handle_error("Error occurred while inserting data into database."); } } ?>