-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
86 lines (86 loc) · 3.31 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Payment Request API demo</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1>Payment Request API demo</h1>
<p>Please install <a href="https://bobpay.xyz">BobPay</a> if you wanna try <a href="https://developers.google.com/web/updates/2018/06/payment-handler-api">Payment Handler API</a>.</p>
<div class="row">
<div class="col">
<h2>Pattern A</h2>
<form>
<div class="form-group">
<button class="btn btn-primary demo-a" type="submit" data-label="Item A" data-value="100">
Item A
¥100
</button>
</div>
<div class="form-group">
<button class="btn btn-primary demo-a" type="submit" data-label="Item B" data-value="200">
Item B
¥200
</button>
</div>
<div class="form-group">
<button class="btn btn-primary demo-a" type="submit" data-label="Item C" data-value="300">
Item C
¥300
</button>
</div>
<div class="form-group">
<button class="btn btn-primary demo-a" type="submit" data-label="Item D" data-value="500">
Item D
¥500
</button>
</div>
<div class="form-group">
<button class="btn btn-primary demo-a" type="submit" data-label="Item E" data-value="1000">
Item E
¥1000
</button>
</div>
</form>
</div>
<div class="col">
<h2>Pattern B</h2>
<form>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" data-label="Item A" value="100" checked> Item A ¥100
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" data-label="Item B" value="200" checked> Item B ¥200
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" data-label="Item C" value="300"> Item C ¥300
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" data-label="Item D" value="500"> Item D ¥500
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" data-label="Item E" value="1000"> Item E ¥1000
</label>
</div>
<div class="form-group">
<button class="btn btn-primary demo-b" type="submit">OK, Let's pay!</button>
</div>
</form>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>