upgrading braintree dropin version, fixing trials bug
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<script src="https://js.braintreegateway.com/web/dropin/1.14.1/js/dropin.min.js"></script>
|
||||
<script src="https://js.braintreegateway.com/web/dropin/1.19.0/js/dropin.min.js"></script>
|
||||
<script>
|
||||
var form = document.querySelector('#payment-form');
|
||||
var client_token = '{{ client_token }}';
|
||||
|
||||
@@ -220,8 +220,8 @@
|
||||
<a href="/rowers/starttrial/">Free PRO trial</a>
|
||||
</button>
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if user.is_anonymous %}
|
||||
|
||||
@@ -486,6 +486,8 @@ def is_future_date(the_date):
|
||||
|
||||
@register.filter
|
||||
def date_dif(the_date):
|
||||
if the_date == date(1970,1,1):
|
||||
return 1
|
||||
if the_date:
|
||||
return the_date - date.today()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user