mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
improved payment form
This commit is contained in:
79
server-ca/index.html
Normal file
79
server-ca/index.html
Normal file
@@ -0,0 +1,79 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="no-js">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>Project Chocolate</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
|
||||
<link rel="stylesheet" href="css/normalize.min.css">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="js/vendor/html5.js"></script>
|
||||
<script>window.html5 || document.write('<script src="js/vendor/html5shiv.js"><\/script>')</script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="header-container">
|
||||
<header class="wrapper clearfix">
|
||||
<h1 class="title">Payment Required</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#"></a></li>
|
||||
<li><a href="#"></a></li>
|
||||
<li><a href="#"></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="main-container">
|
||||
<div class="main wrapper clearfix">
|
||||
|
||||
<article>
|
||||
<header>
|
||||
</header>
|
||||
<section>
|
||||
<h2>Payment Form</h2>
|
||||
<form method="post" accept-charset="UTF-8" action="/payment.py/submit=%s">
|
||||
<p><label for="credit-card">Credit card number</label>: <input name="" type="text" autocomplete="off" id="credit-card" size="20" maxlength="16" /></p>
|
||||
<p><input type="submit" value="Submit" /></p>
|
||||
</form>
|
||||
</p>
|
||||
</section>
|
||||
<footer>
|
||||
</footer>
|
||||
</article>
|
||||
|
||||
<aside>
|
||||
<p>
|
||||
<b>Payment required</b>
|
||||
</p><p>
|
||||
Due to certificate authority policy, issuing this certificate requires a payment.
|
||||
<p>
|
||||
<hr width="70%%" />
|
||||
<p>
|
||||
A payment of <b>17.00 simoleons</b> is due now.
|
||||
<p>
|
||||
In order to process this payment, please pretend to enter a 16-digit credit-card
|
||||
number, and then click the Submit Payment button.</p>
|
||||
<p>
|
||||
This payment will appear on your
|
||||
credit card statement as TRUSTIFIABLE CERTIFICATE SERVICES.</p>
|
||||
</aside>
|
||||
|
||||
</div> <!-- #main -->
|
||||
</div> <!-- #main-container -->
|
||||
|
||||
<div class="footer-container">
|
||||
<footer class="wrapper">
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -21,27 +21,8 @@ class shortform(object):
|
||||
expanded = r.get("shorturl-%s" % what)
|
||||
if not expanded:
|
||||
return "<html><h1>Unknown session ID</h1></html>"
|
||||
return """
|
||||
<html>
|
||||
<h1>Payment required</h1>
|
||||
Due to certificate authority policy, issuing this certificate requires a payment.
|
||||
<p>
|
||||
<hr width="70%%" />
|
||||
<p>
|
||||
A payment of <b>17.00 simoleons</b> is due now.
|
||||
<p>
|
||||
In order to process this payment, please pretend to enter a 16-digit credit-card
|
||||
number below, and then click the Submit Payment button.
|
||||
<p>
|
||||
<form action="/payment.py/submit=%s" method="GET">
|
||||
<i>Credit Card Type</i> <select name=""><option>Vista</option><option>MisterCard</option><option>Discovery</option></select> <br />
|
||||
<i>Credit Card Number</i> <input type="text" name="" style="font-family:monospace" autocomplete="off" /><br />
|
||||
<input type="submit" value="Submit Payment">
|
||||
</form>
|
||||
This payment will appear on your
|
||||
credit card statement as TRUSTIFIABLE CERTIFICATE SERVICES.
|
||||
</html>
|
||||
""" % expanded
|
||||
with open("index.html","r") as f:
|
||||
return f.read() % expanded
|
||||
|
||||
class form(object):
|
||||
def GET(self, what):
|
||||
|
||||
Reference in New Issue
Block a user