-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (86 loc) · 2.84 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Display Test Parameter</title>
<style>
.big-red-text {
color: red;
font-size: 3em;
font-weight: bold;
}
</style>
</head>
<body onload="displayTestParam()">
<div id="output" class="big-red-text"></div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>External ID Verification Service Simulator</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
text-align: center;
padding: 20px;
}
h1 {
font-size: 24px;
margin-bottom: 20px;
}
p {
font-size: 18px;
margin-bottom: 20px;
}
.button-container {
margin-top: 20px;
}
.button {
display: inline-block;
background-color: green;
color: white;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
width: 100%; /* Buttons will occupy the full width of the container */
margin-bottom: 10px;
}
.red-button {
background-color: red;
}
.blue-button {
background-color: blue;
}
.big-red-text {
color: red;
font-size: 3em;
font-weight: bold;
}
</style>
<script>
function handleButtonClick(url) {
window.location.href = url; // Redirect to the given URL in the same tab
}
function displayTestParam() {
const urlParams = new URLSearchParams(window.location.search);
const testParam = urlParams.get('test');
if (testParam) {
document.getElementById('output').textContent = testParam;
} else {
document.getElementById('output').textContent = 'No test parameter provided';
}
}
</script>
</head>
<body onload="displayTestParam()">
<h1>Payment Service Simulator</h1>
<div id="output" class="big-red-text"></div>
<div class="button-container">
<p><button class="button green-button" onclick="handleButtonClick('https://www.facebook.com/carrier_esim_apis/payments/callback?paymentStatus=COMPLETED')">Simulate Payment success</button></p>
<p><button class="button blue-button" onclick="handleButtonClick('https://www.facebook.com/carrier_esim_apis/payments/callback?paymentStatus=CANCELLED')">Simulate Payment cancel</button></p>
<p><button class="button red-button" onclick="handleButtonClick('https://www.facebook.com/carrier_esim_apis/payments/callback?paymentStatus=ERROR')">Simulate Payment failure</button></p>
</div>
</body>
</html>