-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
255 lines (247 loc) · 8.56 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
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!--
#####################################################
_____ _ __ _ _____
/ ____| (_)/ _| | | __ \
| (_____ ___| |_| |_| |__) |_ _ _ _
\___ \ \ /\ / / | _| __| ___/ _` | | | |
____) \ V V /| | | | |_| | | (_| | |_| |
|_____/ \_/\_/ |_|_| \__|_| \__,_|\__, |
__/ |
|___/
***Developed by: Ashwet Harde***
***SwiftPay***
SwiftPay is an dummy payment gateway application which detect city and state by entering zip code.
#####################################################
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1"
/>
<title>SwiftPay</title>
<link rel="shortcut icon" href="icons/pay.png" type="image/x-icon" />
<link rel="stylesheet" href="pay.css" />
<link rel="stylesheet" href="index.css" />
</head>
<body>
<div id="modal" class="modal" style="display: block">
<div class="modal-content">
<span class="close" onclick="closeModal()">
<span class="loader" style="display: none"></span>
<span class="close-text">×</span>
</span>
<div class="container">
<h1>Checkout</h1>
<div class="section-headings">
<div
class="heading"
id="mobile-heading"
onclick="navigateToSection('mobile-section')"
>
<span class="checkmark" id="mobile-check">✓</span>Mobile
Number
</div>
<div
class="heading"
id="address-heading"
onclick="navigateToSection('address-section')"
>
<span class="checkmark" id="address-check">✓</span>Address
</div>
<div
class="heading"
id="payment-heading"
onclick="navigateToSection('payment-section')"
>
Payment
</div>
</div>
<hr /><br /><br /><br />
<form id="checkout-form" class="form">
<div id="mobile-section">
<center>
<h2 style="margin-top: -2%">Enter Mobile Number</h2>
<label style="width: 40%; border-radius: 9px" class="fieldxx">
<label class="field__labelxx" for="phone"
>Enter Phone Number</label
>
<input
style="font-size: 20px; padding-bottom: 15px"
class="field__inputxx"
minlength="10"
type="tel"
id="phone"
name="phone"
pattern="(\+91 │ )?[0-9]{10}"
title="Enter a valid Indian phone number starting with +91"
required
/>
</label>
<br />
<label class="checkbox-label">
<input type="checkbox" id="subscribe" name="subscribe" />
<span class="checkbox-custom"></span>
Notify me for orders, updates & offers
</label>
<br /><br />
<button
style="width: 60%; margin-bottom: 10%; border-radius: 20px"
class="button"
type="button"
onclick="checkMobile()"
>
Continue
</button>
</center>
</div>
</form>
<div
id="address-section"
style="
display: none;
margin-top: -60px;
height: 210px;
overflow-y: auto;
padding: 7%;
"
>
<center>
<h2 style="margin-top: -2%">Add New Address</h2>
</center>
<div class="fields fields--2">
<label class="field" style="width: 210%">
<span class="field__label" for="zipcode">Zip code</span>
<input
class="field__input"
type="text"
id="zipcode"
maxlength="6"
required
/>
<div id="zipcode-error" class="error-message"></div>
</label>
<br />
<label class="field" style="width: 210%">
<span class="field__label" for="city">City</span>
<input class="field__input" type="text" id="city" required />
</label>
<br />
<label class="field" style="width: 210%">
<span class="field__label" for="state">State</span>
<input class="field__input" type="text" id="state" required />
</label>
</div>
<br />
<div class="fields fields--2">
<label class="field" style="width: 210%">
<span class="field__label" for="firstname">Full Name</span>
<input
class="field__input"
type="text"
id="firstname"
required
/>
</label>
<br />
<label class="field" style="width: 210%">
<span class="field__label" for="lastname">Email Address</span>
<input
class="field__input"
type="email"
id="lastname"
required
/>
</label>
</div>
<br />
<div class="fields fields--2">
<label class="field" style="width: 210%">
<span class="field__label" for="address"
>Full Address (House no., Area, etc)</span
>
<input
class="field__input"
type="text"
id="address"
required
style="word-wrap: break-word; white-space: normal"
/>
</label>
<br />
</div>
<br />
<button
style="
position: absolute;
bottom: 70px;
left: 50%;
width: 40%;
border-radius: 20px;
transform: translateX(-50%);
"
class="button"
type="button"
onclick="checkAddress()"
>
Next
</button>
</div>
<div id="payment-section-container" style="position: relative">
<div
id="payment-section"
style="
display: none;
margin-top: -60px;
height: 200px;
overflow-y: auto;
padding: 7%;
"
>
<center>
<h3 style="margin-top: -2%"
>Please Select payment method to complete the order</h3
>
</center>
<div class="payment-section">
<div class="payment-box">
<span>PhonePe</span>
<img src="icons/phonepe.png" alt="PhonePe" />
</div>
<div class="payment-box">
<span>Google Pay</span>
<img src="icons/gpay.png" alt="Google Pay" />
</div>
<div class="payment-box">
<span>Paytm</span>
<img src="icons/paytm.png" alt="Paytm" />
</div>
<div class="payment-box">
<span>UPI</span>
<img src="icons/upi.png" alt="UPI" />
</div>
<div class="payment-box">
<span>Visa</span>
<img src="icons/visa.png" alt="Visa" />
</div>
<div class="payment-box">
<span>Mastercard</span>
<img src="icons/mastercard.png" alt="Mastercard" />
</div>
</div>
<button class="btn" type="button" onclick="submitOrder()"
>Pay</button
>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<p>© 2024 SwiftPay, Developed By - Ashwet Harde</p>
</footer>
<script src="script.js"></script>
</body>
</html>