fixed some problems with StripeForm

This commit is contained in:
mdipierro
2013-10-02 11:42:02 -05:00
parent e2c940532d
commit b44aefc384
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.4-stable+timestamp.2013.10.02.11.05.35
Version 2.6.4-stable+timestamp.2013.10.02.11.40.56
+6 -6
View File
@@ -96,8 +96,8 @@ class StripeForm(object):
security_notice = True,
disclosure_notice = True,
template = None):
from gluon import current
if not current.request.is_local or current.request.is_https:
from gluon import current, redirect, URL
if not (current.request.is_local or current.request.is_https):
redirect(URL(args=current.request.args,scheme='https'))
self.pk = pk
self.sk = sk
@@ -185,7 +185,7 @@ jQuery(function(){
});
</script>
<h1>Secure Payment with Stripe.com</h1>
<h2>Secure Payment with Stripe.com</h2>
<h3>Payment Amount: {{=currency_symbol}} {{="%.2f" % amount}}</h3>
<form action="" method="POST" id="payment-form" class="form-horizontal">
@@ -202,7 +202,7 @@ jQuery(function(){
<label class="control-label">CVC</label>
<div class="controls">
<input type="text" size="4" style="width:80px" data-stripe="cvc"
placeholder="000"/>
placeholder="XXX"/>
<a href="http://en.wikipedia.org/wiki/Card_Verification_Code" target="_blank">What is this?</a>
</div>
</div>
@@ -211,10 +211,10 @@ jQuery(function(){
<label class="control-label">Expiration</label>
<div class="controls">
<input type="text" size="2" style="width:40px" data-stripe="exp-month"
placeholder="12"/> (MM)
placeholder="MM"/>
/
<input type="text" size="4" style="width:80px" data-stripe="exp-year"
placeholder="2018"/> (YYYY)
placeholder="YYYY"/>
</div>
</div>