-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayment.html
More file actions
69 lines (62 loc) · 2.75 KB
/
payment.html
File metadata and controls
69 lines (62 loc) · 2.75 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Toffee — Accept Digital Candy from UPI</title>
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="d-flex flex-column justify-content-center align-items-center min-vh-100">
<div class="w-100" style="max-width: 500px;">
<div class="card shadow-sm border-0 rounded-4">
<div class="card-body p-4 text-center">
<!-- Title + subtitle inside card -->
<h1 class="mb-2">Toffee</h1>
<p class="lead mb-4">Show your support!</p>
<hr>
<form id="toffeeForm" novalidate>
<!-- Toffee count + price -->
<div class="d-flex justify-content-center align-items-center mb-3 bg-light rounded-3 p-3">
<span style="font-size:2rem;">🍬</span>
<span class="mx-2 text-body-secondary" style="font-size:1.2rem;">x</span>
<input type="number" min="1" class="form-control text-center" id="toffeeCount" value="1" style="max-width:80px;font-size:1.1rem;">
<span id="toffeePriceLabel" class="ms-2 text-body-secondary" style="font-size:1.1rem;"></span>
</div>
<!-- Optional message -->
<div class="mb-3">
<label for="customMessage" class="form-label">Custom Message (optional)</label>
<textarea
class="form-control"
id="customMessage"
placeholder="Enter a message"
maxlength="120"
rows="2"></textarea>
</div>
<!-- QR code container -->
<div id="button-qr" class="mt-3 text-center d-none">
<div id="upi-qr" class="p-3 border rounded-4 bg-light d-inline-block"></div>
</div>
<!-- Pay button -->
<button id="pay-button" type="button" class="btn btn-success w-100 mt-3 rounded-pill">
Send Money
</button>
</form>
</div>
</div>
</div>
</main>
<br>
<footer class="text-center py-3 border-top">
<small class="text-muted">
Powered by <a href="https://getmetoffee.vercel.app/" target="_blank"><strong>Toffee</strong></a> —
© 2025 Lakshya Singh Chauhan
</small>
</footer>
<script src="js/payment.js"></script>
</body>
</html>