Create payment.py
Browse files- utils/payment.py +59 -0
utils/payment.py
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
html_doge_wallet = """
|
2 |
+
<!DOCTYPE html>
|
3 |
+
<html lang="en">
|
4 |
+
<head>
|
5 |
+
<style>
|
6 |
+
body {
|
7 |
+
font-family: Arial, sans-serif;
|
8 |
+
background-color: #f5f5f5;
|
9 |
+
margin: 0;
|
10 |
+
padding: 0;
|
11 |
+
color: #333;
|
12 |
+
}
|
13 |
+
.container {
|
14 |
+
max-width: 600px;
|
15 |
+
margin: 20px auto;
|
16 |
+
background: #ffffff;
|
17 |
+
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
18 |
+
padding: 20px;
|
19 |
+
border-radius: 10px;
|
20 |
+
text-align: center;
|
21 |
+
}
|
22 |
+
h1 {
|
23 |
+
color: #ba9b37;
|
24 |
+
}
|
25 |
+
.doge-wallet {
|
26 |
+
font-size: 18px;
|
27 |
+
color: #555;
|
28 |
+
background: #f9f9f9;
|
29 |
+
padding: 10px;
|
30 |
+
border: 1px dashed #ba9b37;
|
31 |
+
border-radius: 5px;
|
32 |
+
margin: 10px auto;
|
33 |
+
display: inline-block;
|
34 |
+
word-break: break-all;
|
35 |
+
}
|
36 |
+
.qr-code {
|
37 |
+
margin: 20px 0;
|
38 |
+
}
|
39 |
+
.note {
|
40 |
+
font-size: 14px;
|
41 |
+
color: #777;
|
42 |
+
margin-top: 10px;
|
43 |
+
}
|
44 |
+
</style>
|
45 |
+
</head>
|
46 |
+
<body>
|
47 |
+
<div class="container">
|
48 |
+
<h1>Support the Project</h1>
|
49 |
+
<p>If you’d like to support Chelsea, consider donating Dogecoin! Your help keeps the project alive and thriving.</p>
|
50 |
+
<h3>Your Dogecoin Wallet</h3>
|
51 |
+
<div class="doge-wallet">D6Y8u7P9ExampleAddressForDogeProjectSupport</div>
|
52 |
+
<div class="qr-code">
|
53 |
+
<img src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=DBsfDMdbJGcd2XS1gXBMYJkrXmMCpqKJ1K&choe=UTF-8" alt="Dogecoin Wallet QR Code">
|
54 |
+
</div>
|
55 |
+
<p class="note">Scan the QR code or copy the wallet address to send Dogecoin.</p>
|
56 |
+
</div>
|
57 |
+
</body>
|
58 |
+
</html>
|
59 |
+
"""
|