-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaymentgateway.html
202 lines (161 loc) · 5.68 KB
/
paymentgateway.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../style/paymentgateway.css">
<style>
body {
margin: 0px;
font-family: Arial, Helvetica, sans-serif;
}
.topsec {
border-bottom: 1px solid rgb(212, 212, 212);
}
.topsec p {
color: black;
font-size: 20px;
}
.topsec div{
margin: auto;
width: 70%;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
font-size: 18px;
color: #b5b6ba;
}
.topsec div img {
margin-top: -1%;
margin-right: 20px;
height: 35%;
}
#cir_no {
font-size: 18px;
padding-left: 8px;
padding-right: 8px;
border: 1px solid #1dbf73;
border-radius: 50px;
background-color: #1dbf73;
color: white;
}
#timer {
margin-top: 3%;
text-align: center;
font-size: 25px;
font-weight: 600;
margin-bottom: -2%;
}
</style>
</head>
<body>
<div class="topsec">
<div>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/Fiverr_Logo_09.2020.svg/1200px-Fiverr_Logo_09.2020.svg.png" alt="">
<h4 style="color:#1dbf73;"> <span id="cir_no">1</span> Order Details</h4>
<p>></p>
<h4 style="color:#1dbf73;"> <span id="cir_no">2</span> Confirm and Pay</h4>
<p>></p>
<h4> <span id="cir_no">3</span> Submit Requirments</h4>
</div>
</div>
<div id="timer"></div>
<div class="container">
<form action="">
<div class="row">
<div class="col">
<h3 class="title">billing address</h3>
<div class="inputBox">
<span>full name :</span>
<input type="text" placeholder="Name">
</div>
<div class="inputBox">
<span>email :</span>
<input type="email" placeholder="Enter Email">
</div>
<div class="inputBox">
<span>address :</span>
<input type="text" placeholder="Adress/Street">
</div>
<div class="inputBox">
<span>city :</span>
<input type="text" placeholder="City Name">
</div>
<div class="flex">
<div class="inputBox">
<span>state :</span>
<input type="text" placeholder="State">
</div>
<div class="inputBox">
<span>Pin code :</span>
<input type="text" placeholder="Pin" id="pin">
</div>
</div>
</div>
<div class="col">
<h3 class="title">payment</h3>
<div class="inputBox">
<span>cards accepted :</span>
<img src="../components/card_img.png" alt="">
</div>
<div class="inputBox">
<span>name on card :</span>
<input type="text" placeholder="Enter Card Name">
</div>
<div class="inputBox">
<span>credit card number :</span>
<input type="number" placeholder="1111-2222-3333-4444">
</div>
<div class="inputBox">
<span>exp month(01-Jan/ 12-Dec) :</span>
<input type="text" placeholder="10">
</div>
<div class="flex">
<div class="inputBox">
<span>exp year :</span>
<input type="number" placeholder="2022">
</div>
<div class="inputBox">
<span>CVV :</span>
<input type="text" placeholder="1234">
</div>
</div>
</div>
</div>
<input type="submit" value="proceed to checkout" class="submit-btn" onclick="checkData()">
</form>
</div>
</body>
</html>
<script>
function countdownTimeStart(){
let minstoadd = 5;
var currentDate = new Date();
var countDownDate = new Date( currentDate.getTime() + minstoadd*60000);
var x = setInterval(function() {
var now = new Date().getTime();
var distance = countDownDate - now;
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById("timer").innerHTML = "Expires in: " + "0"+minutes+" : "+ seconds;
if (distance < 0) {
clearInterval(x);
document.getElementById("timer").innerHTML = "EXPIRED";
}
}, 1000);
}
window.onload = countdownTimeStart();
function checkData() {
event.preventDefault()
let check = document.getElementById("pin").value;
if (check == "1111"){
localStorage.setItem("verification",JSON.stringify(true))
} else {
localStorage.setItem("verification",JSON.stringify(false))
}
window.location.href = "lastpage.html"
}
</script>