-
Notifications
You must be signed in to change notification settings - Fork 4
/
payment.html
216 lines (179 loc) · 5.56 KB
/
payment.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
<!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">
<title>Payment</title>
<link rel="shortcut icon" type="image/ico" href="https://m.geekbuying.com/favicon.ico">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<style>
/* *{
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
} */
*{
/* box-sizing: border-box;
padding: 0px;
margin: 0px; */
font-family: sans-serif;
}
#header>img{
width: 100%;
height: 120px;
margin: 0px;
}
#header{
box-sizing: border-box;
padding: 0px;
width: 100%;
margin: 0px;
/* margin: auto; */
height: 160px;
}
#main{
width: 98%;
height: 500px;
margin: auto;
padding: 5px;
justify-content: space-between;
display: flex;
/* box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, */
/* rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset; */
border: 1px solid gray;
border-radius: 7px;
}
#option{
width: 25%;
background-color: rgb(247, 227, 202);
padding: 10px;
}
#card{
width: 38%;
padding: 10px;
}
#summary{
width: 33%;
padding: 10px;
}
#btn{
width: 130px;
height: 40px;
margin-top: 20px;
margin-left: 190px;
background: #06f;
color: aliceblue;
border: 0px;
cursor: pointer;
border-radius: 5px;
font-weight: bold;
}
#summary1{
height: auto;
text-align: center;
margin: auto;
background-color: #06f;
color: aliceblue;
}
#miniBox{
height: 30%;
width: 100%;
display: flex;
}
#mini1{
height:40%;
width: 50%;
/* border: 1px solid blue; */
}
#mini2{
height: 40%;
width: 50%;
text-align: right;
/* border: 1px solid blue; */
}
u{
color: rgb(63, 63, 243);
}
#total{
display: flex;
justify-content: space-between;
}
h2>i,h2>svg{
margin-right: 10px;
}
h2>img{
margin-bottom: -10px;
margin-left: -5px;
}
#last{
margin-top: 170px;
}
#last>img{
width: 100%;
}
</style>
</head>
<body>
<div id="header">
<img src="./payment/Screenshot (643).png" alt="">
</div>
<div><h1>Payment Gateway</h1></div>
<div id="main">
<div id="option">
<h2><i class='fas fa-wallet'></i>Wallet</h2>
<h2><img src="https://img.icons8.com/fluency/40/000000/bhim.png"/>UPI</h2>
<h2><i style="font-size:24px" class="fa"></i>Cards</h2>
<h2><i style="font-size:24px" class="fa"></i>Net Banking</h2>
<h2><svg xmlns="http://www.w3.org/2000/svg" width="29" height="26" fill="currentColor" class="bi bi-cash" viewBox="0 0 18 11">
<path d="M8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/>
<path d="M0 4a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V4zm3 0a2 2 0 0 1-2 2v4a2 2 0 0 1 2 2h10a2 2 0 0 1 2-2V6a2 2 0 0 1-2-2H3z"/>
</svg>Pay On Delivery</h2>
</div>
<div id="card">
<h3>Credit & Debit Cards</h3>
<p>Add new cards for payment</p>
<p> Card Number</p>
<input type="number" placeholder="Enter Card Number">
<p>Expiry Date</p>
<input type="date">
<p>CVV</p>
<input type="number" placeholder="Enter CVV">
<p>Your card details will be saved securely for future transactions, based on the industry standards. <u>Terms & condition</u></p>
<button id="btn">Make Payment</button>
</div>
<div id="summary">
<div id="summary1"><h2>Payment Summary</h2></div>
<div id="miniBox">
<div id="mini1">
<p>Amount</p>
<p>Card Offer</p>
</div>
<div id="mini2">
<p>0</p>
<p>-1500</p>
</div>
</div>
<hr>
<div id="total">
<p >Total Amount</p>
<p>0</p>
</div>
<hr>
</div>
</div>
<div id="last"> <img src="https://content1.geekbuying.com/V1.4/en/images/shopcart_footicon.png" alt=""></div>
</body>
</html>
<script>
let x =localStorage.getItem("final");
x= Number(x);
document.querySelector("#mini2>p:nth-Child(1)").innerText=x;
let amt=document.querySelector("#mini2>p:nth-Child(2)").innerText;
amt=Number(amt);
let finalAmt=x+amt;
document.querySelector("#total>p:nth-Child(2)").innerText=finalAmt;
document.querySelector("#btn").addEventListener("click",orderplaced);
function orderplaced(){
window.location.href="confirmation.html";
}
</script>