-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.html
62 lines (61 loc) · 2.66 KB
/
checkout.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Checkout Page</title>
<link rel="stylesheet" href="cart.css">
<link rel="icon" href="images/logo2.png">
<script type="text/javascript" src="javascript.js"></script>
</head>
<body onload="calTotal(); fillForm(); hideAll(); countItems()">
<header class='topnav'>
<div class="logo">
<a href="homepage.html"><img src="images/logo.png" alt="Logo"></a>
</div>
</header>
<br>
<br>
<div class="summary">
<h1>Order Summary</h1>
<form class="summaryForm" action="checkout2.html" method="post" onsubmit="checkout()">
<p>Items: <span id='items'>0</span> </p>
<p>Subtotal: $<span id='subTotal'>0</span></p>
<div class="name">
<input class="name" type="text" name="firstname" placeholder="First name" id='firstName' required>
<input class="name" type="text" name="lastname" placeholder="Last name" id='lastName' required>
</div>
<div class="address">
<input type="text" name="address" placeholder="Address Line" required>
<input title='6-digits' type="tel" name="postalCode" placeholder="Postal Code" pattern='[0-9]{6}' required>
<input title='8-digits' type="tel" name="phoneNum" placeholder="Phone Number" pattern="[0-9]{8}" required>
<br>
</div>
<select id="payment" onchange="paymentMethods(value); jump()" required>
<option value="null" disabled selected>Select your preferred mode of payment</option>
<option value="Paylah">PayLah</option>
<option value="Paynow">Paynow</option>
<option value="card">Credit/Debit Card</option>
</select>
<div class="paymentMethod" id='scroll'>
<div class="paylah">
<p>User the QR code below to pay</p>
<img src="images/paylahqr.png" alt="paynow qr code">
</div>
<div class="paynow">
<p>User the QR code below to pay</p>
<img src="images/paynowqr.png" alt="paynow qr code">
</div>
<div class="card">
<input title='16-digits' type="tel" id="ccnum" name="cardnumber" placeholder="Credit/Debit Card Number">
<input type="text" id="expmonth" name="expmonth" placeholder="Expiry Month">
<div class="exp">
<input type="text" id="expyear" name="expyear" placeholder="Expiry Year">
<input type="tel" id="cvv" name="cvv" pattern='[0-9]{3}'placeholder="CVV">
</div>
</div>
</div>
<input type="submit" name="submit" value="Place Order">
</form>
</div>
</body>
</html>