-
Notifications
You must be signed in to change notification settings - Fork 1
/
payment.html
182 lines (163 loc) · 4.61 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
<!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>Document</title>
<style>
.container {
display: inline-block;
}
#heading {
text-align: end;
}
#heading>h1 {
font-size: 40px;
font-weight: 700;
font-family: 'Times New Roman', Times, serif;
}
#pagetype {
width: 700px;
height: 50px;
background-color: rgb(175, 174, 174);
padding: 2px;
padding-left: 50px;
margin-left: 100px;
margin-bottom: 30px;
}
input {
margin-top: 20px;
margin-right: 20px;
border: none;
}
#save_div {
margin-left: 500px;
width: 200px;
height: 40px
}
button {
background: linear-gradient(to right, #ff9966 0%, #ff0066 100%);
color: white;
border: 1px solid white;
padding: 5px;
}
#form_div {
margin-left: 200px;
}
#add_div{
margin-left: 150px;
}
#order_summery {
border: 20px solid rgb(175, 174, 174) ;
width: 300px;
height: 340px;
display: inline-block;
margin-top: -100px;
text-align: center;
margin-left: 100px;
}
img {
width: 100%;
height:600px
}
/* #order_summery>h4 {
text-align: center;
} */
#message {
width: 750px;
height: 100px;
margin-left: 100px;
margin-bottom: 30px;
padding-right: -30px;
}
#img_div {
width: 750px;
height: 100px
}
.con1{
text-align: center;
}
h2 {
font-size: 20px;
}
#order {
background-color: rgb(175, 174, 174);
padding: 5px;
}
#total_div {
margin-top: 320px;
}
</style>
</head>
<body>
<div class="container">
<div id="heading">
<h1 >SHOPPER STOP</h1>
</div>
<div id="pagename">
<h3>CHECK OUT</h3>
</div>
<div id="pagetype">
<h2>1.DELIVERY METHOD</h2>
</div>
<div id="pagetype">
<h2>2.MAKE PAYMENT</h2>
</div>
<div id="message">
<img id="img_div" src="message.png"/>
</div>
<div id="pagetype">
<h2>CARD PAYMENT</h2>
</div>
<div class="con1">
<div >
<input id="name" id="sizing" type="text" placeholder="Enter Name">
</div>
<div >
<input id="cardno " id="sizing" type="number" placeholder="Card number">
</div>
<div >
<input id="cvv" type="number" placeholder="CVV">
</div>
<div >
<input id="otp"type="number" placeholder="Enter OTP">
</div>
<div id="save_div" >
<button type="submit" id="doneorder11" onclick="doneorder">PLACE ORDER</button>
</div>
</div>
</div>
</div>
<div id="order_summery"><div>
<h2 id="order">ORDER SUMMARY</h2>
</div>
<div id="total"></div>
<div>
<h4>DELIVERY CHARGES:<span> </span>FREE</h4>
<h4>GIFT PACKING: <span> </span>FREE</h4>
<h4 id="dis_price"></h4>
<h4 id="strike_price">COUPON DISCOUNT</h4>
</div>
<div>
<h3 id="total_div"></h3>
</div></div>
<div><img src="footer.png"/>
</div>
</body>
</html>
<script>
var doneorder1=document.getElementById("doneorder11")
doneorder1.addEventListener("click",doneorder)
function doneorder(){
console.log("h")
alert('Your payment is successful')
window.location.href="index.html"
}
var cart_price=JSON.parse(localStorage.getItem("Total_price"));
var cart_strikeprice=JSON.parse(localStorage.getItem("strike_price"));
console.log("cart_price:",cart_price)
document.getElementById('dis_price').innerText='TOTAL CART PRICE: '+cart_price;
document.getElementById("strike_price").innerText='COUPON DISCOUNT: '+cart_strikeprice;
document.getElementById('total_div').innerText='TOTAL PAYABLE: '+cart_price;
</script>