-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmessage.php
More file actions
99 lines (84 loc) · 2.08 KB
/
Copy pathmessage.php
File metadata and controls
99 lines (84 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Payment successful</title>
</head>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f8f9fa;
font-family: Arial, sans-serif;
margin: 0;
}
.container {
text-align: center;
background: #fff;
padding: 30px;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.checkmark {
width: 80px;
height: 80px;
border-radius: 50%;
background: #4CAF50;
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto 20px;
}
.checkmark::after {
content: '✔';
font-size: 40px;
color: white;
font-weight: bold;
}
h2 {
color: #333;
margin-bottom: 10px;
}
p {
color: #666;
font-size: 16px;
}
.redirect-message {
font-size: 14px;
margin-top: 15px;
color: #888;
}
</style>
</style>
<body>
<?php
session_start();
if (isset($_SESSION['transaction_msg'])) {
echo $_SESSION['transaction_msg'];
unset($_SESSION['transaction_msg']);
}
?>
<div class="container">
<div class="checkmark"></div>
<h2>Payment Successful</h2>
<p>Thank you for your purchase! Your transaction has been completed.</p>
<p class="redirect-message">Redirecting to homepage in <span id="timer">5</span> seconds...</p>
</div>
<script>
// Countdown timer before redirection
let count = 3;
let timer = document.getElementById("timer");
setInterval(() => {
count--;
timer.textContent = count;
if (count === 0) {
window.location.href = "index.php"; // Redirect to homepage (Change URL as needed)
}
}, 1000);
</script>
</div>
</body>
</html>