ok

Mini Shell

Direktori : /home2/selectio/public_html/y1jobportal.in/
Upload File :
Current File : //home2/selectio/public_html/y1jobportal.in/success.php

<?php
include_once ('admin/api/config/config.php');
session_start();

// Decode the JSON data received from the form
$payment_details = json_decode($_POST['payment_details'], true);

// Extract data from the JSON object
if(isset($_POST['razorpay_payment_id'])) {
$name = $payment_details['name'];
$amount = $payment_details['amount'] * 100; // Convert amount to paise if using INR
$description = $payment_details['description'];
$plan = $payment_details['plan'];
$razorpay_payment_id = $payment_details['razorpay_payment_id'];

try {
    // Prepare SQL statement
    $stmt = $pdo->prepare("INSERT INTO razorpay_payment (plan,name, amount, payment_status, payment_id) VALUES (?,?, ?, ?, ?)");
    $stmt->execute([$plan,$name, $amount, $description, $razorpay_payment_id]);
    echo '<center> Payment Success </center>';


} catch (PDOException $e) {
    echo "Error: " . $e->getMessage();
}
    
    
}else{
    echo '<center> Payment Failed Tray Again </center>';
    
}





?>
<script>
    setTimeout(function() {
    window.location.href = 'https://y1jobportal.in/';
}, 5000); // 5000 milliseconds = 5 seconds

</script>

Zerion Mini Shell 1.0