-
Notifications
You must be signed in to change notification settings - Fork 1
/
payment.html
296 lines (234 loc) · 9.46 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
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
<!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>PaymentPage</title>
<link rel="stylesheet" href="payment.css">
</head>
<body>
<div id="contener">
<!-- first div -->
<div id="flexbox">
<P class="bigFont">Offers</P>
<div id="box" >
<div class="leftBox">
<img class="imgSize" src="https://cdn.pharmeasy.in/payments/amazonpay_new.png" alt="">
</div>
<div class="rightBox">
<div class="U1">
<p class="h3">Amazon Pay</p>
<input type="radio">
</div>
<div class="D1">
<p class="p1" >Get up to Rs. 500 cashback on aminimum tansaction of RS.100 via Amazon Pay.Offer arrlicable onece per user</p>
<p class="pbtn"></p>
</div>
</div>
</div>
<div id="box" >
<div class="leftBox">
<img class="imgSize" src="https://cdn.pharmeasy.in/payments/wallet_icons/phonepe.png" alt="">
</div>
<div class="rightBox">
<div class="U1">
<p class="h3">Phone Pe </p>
<input type="radio">
</div>
<div class="D1">
<p class="p1">Get a Scratch card and win up to Rs.750 cashback on a minimum transaction of Rs.500 via PhonePe wallet only. Offer applicable once per user</p>
<p class="pbtn"></p>
</div>
</div>
</div>
<div id="box" >
<div class="leftBox">
<img class="imgSize" src="https://cdn.pharmeasy.in/payments/wallet_icons/mobikwik.png" alt="">
</div>
<div class="rightBox">
<div class="U1">
<p class="h3">Mobikwik </p>
<input type="radio">
</div>
<div class="D1">
<p class="p1">Get up to Rs.500 cashback on a minimum transaction of Rs.750 via Mobikwik Wallet.Use code MBK500 on Mobikwik </p>
<p class="pbtn"></p>
</div>
</div>
</div>
<div id="box" >
<div class="leftBox">
<img class="imgSize paytmImg" src="https://cdn.pharmeasy.in/payments/wallet_icons/paytm.png" alt="">
</div>
<div class="rightBox">
<div class="U1">
<p class="h3"> Paytm Wallet </p>
<input type="radio">
</div>
<div class="D1">
<p class="p1">Get 4000 cashback points on minimum transaction of Rs.999. Offer applicable once per user.</p>
<p class="pbtn"></p>
</div>
</div>
</div>
<P class="bigFont">Other Option</P>
<div id="box" >
<div class="leftBox">
<img class="imgSize" src="https://cdn.pharmeasy.in/payments/upi.png" alt="">
</div>
<div class="rightBox">
<div class="U1">
<p class="h3">UPI</p>
<P class="symbol">></P>
</div>
<div class="D1">
<img class="imgSize img1 " src="https://consumer-app-images.pharmeasy.in/payment-icons/gpay.png" alt=""><img class="imgSize img1" src="https://consumer-app-images.pharmeasy.in/payment-icons/bhim.png" alt=""><img class="imgSize img1" src="https://consumer-app-images.pharmeasy.in/payment-icons/paytmUpi.png" alt=""><img class="imgSize img1" src="https://consumer-app-images.pharmeasy.in/payment-icons/phonepeUpi.png" alt="">
<p class="and">and more</p>
<p class="pbtn"></p>
</div>
</div>
</div>
<div id="box" >
<div class="leftBox">
<img class="imgSize" src="https://cdn.pharmeasy.in/payments/wallet.png" alt="">
</div>
<div class="rightBox">
<div class="U1">
<p class="h3">Wallets</p>
<P class="symbol11"> ></P>
</div>
<div class="D1">
<img class="imgSize img1 " src="https://consumer-app-images.pharmeasy.in/payment-icons/amazonpay.png" alt=""><img class="imgSize img1" src="https://consumer-app-images.pharmeasy.in/payment-icons/paytm.png" alt=""><img class="imgSize img1" src="https://consumer-app-images.pharmeasy.in/payment-icons/freecharge-wallet.png" alt=""><img class="imgSize img1" src="https://consumer-app-images.pharmeasy.in/payment-icons/phonepeWallet.png" alt="">
<p class="pbtn"></p>
</div>
</div>
</div>
<div id="box" >
<div class="leftBox">
<img class="imgSize" src="https://cdn.pharmeasy.in/payments/card.png" alt="">
</div>
<div class="rightBox">
<a id="line" href="paymentcard.html">
<div class="U1">
<p class="h3">Debit Card</p>
<P class="symbol1">></P>
</div>
<div class="medium">
<p class="m1">Get flat RS 250 cashback on a minimum transaction of Rs 2000 on ICICI Debit & Credit cards</p>
<p class="m1">Get flat Rs.150 discount on a minimum transaction of Rs 1500 on Onecard</p>
</div>
<div class="D1">
<img class="imgSize img1 " src="https://consumer-app-images.pharmeasy.in/payment-icons/visa.png" alt=""><img class="imgSize img1" src="https://consumer-app-images.pharmeasy.in/payment-icons/mastercard-logo.png" alt=""><img class="imgSize img1" src="https://consumer-app-images.pharmeasy.in/payment-icons/rupay.png" alt=""><img class="imgSize img1" src="https://consumer-app-images.pharmeasy.in/payment-icons/maestro-logo.png" alt="">
<img class="imgSize img1" src="https://consumer-app-images.pharmeasy.in/payment-icons/dinerCard.png" alt="">
</a>
<p class="pbtn"></p>
</div>
</div>
</div>
<div id="box" >
<div class="leftBox">
<img class="imgSize" src="https://cdn.pharmeasy.in/payments/netbanking.png" alt="">
</div>
<div class="rightBox">
<div class="U1">
<p class="h3 h31">Net Banking</p>
<P class="symbol1 sumbol2 ">></P>
</div>
<div class="D1">
<p class="m1 ">We support over 100 banks</p>
</div>
</div>
</div>
<div id="box" >
<div class="leftBox">
<img class="imgSize" src="https://consumer-app-images.pharmeasy.in/payment-icons/cod.png" alt="">
</div>
<div class="rightBox">
<div class="U1">
<p class="h3 h31">Pay On Delivery</p>
<input class="radio1" type="radio">
</div>
<div class="D1">
<p class="m1 ">Pay via cash/UPI at the time of delivery</p>
</div>
</div>
</div>
</div>
<!-- second table div -->
<div>
<div id="boxUp">
<img src="https://assets.pharmeasy.in/web-assets/dist/9abb1d25.svg" alt="">
<p>PharmEasyWallet</p>
<form action="/action_page.php">
<input class="in" type="checkbox" >
</form>
</div>
<!-- table -->
<table>
<tr>
<td>Cart Value</td>
<td id="cartTotal">100</td>
</tr>
<tr>
<td>Delivery Charge</td>
<td id="free">free</td>
</tr>
<tr>
<td>Amount to be paid</td>
<td id="totalAmount">124.35</td>
</tr>
</table>
</div>
<!-- second table div -->
<!-- second table -->
</div>
</body>
</html>
<script>
document.querySelector("#box").addEventListener("click",btnFun())
function btnFun(){
var btn = document.createElement("button")
btn.innerText = "place order & Pay";
btn.style.background = "teal"
}
// table display
// var displayTable = JSON.parse(localStorage.getItem("TableDisplay"))||[]
var total = JSON.parse(localStorage.getItem("total"))
var totalCartValue = document.querySelector("#cartTotal")
totalCartValue.innerText = total;
var totalAmountValue = document.querySelector("#totalAmount")
totalAmountValue.innerText = total
// displayTable.map(function(elem,index){
// var row = document.createElement("tr")
// var td1 = document.createElement("td")
// td1.innerText = elem.value;
// var td3 = document.createElement("td")
// td3.innerText = " remove ";
// td3.style.background ="green"
// td3.style.borderRadius = "20px"
// td3.style.textAlign = "center"
// td3.setAttribute("class","td3")
// td3.addEventListener("click" ,function(){
// removeFn(elem,index)
// })
// var td2 = document.createElement("td")
// td2.innerText = total;
// td2.setAttribute("class","td2")
// row.append(td1,td2,td3)
// document.querySelector("#table").append(row)
// }
// )
// function removeFn(elem,index){
// console.log(elem)
// displayTable.splice(index,1)
// localStorage.setItem("TableDisplay",JSON.stringify(displayTable))
// window.location.reload();
// }
///body styling part
// var tbody = document.querySelector("tbody")
// tbody.style.background ="teal"
// tbody.style.border ="1px solid black"
// var td = document.querySelector("tbody>td")
// td.style.background = "red";
</script>