Create a proper billing page
parent
606e8122a6
commit
caf63fd4de
@ -1,28 +1,25 @@
|
||||
{% load static %}
|
||||
|
||||
<head>
|
||||
<script src="https://js.stripe.com/v3/"></script>
|
||||
</head>
|
||||
<div class="product-container">
|
||||
<a href="order?product=drilldown">
|
||||
<div class="product">
|
||||
<img src="{% static 'logo.weekly.jpg' %}" alt="Data image"/>
|
||||
<div class="description">
|
||||
<h3>Drilldown</h3>
|
||||
<h5>200.00</h5>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<a href="order?product=sentiment">
|
||||
<div class="product">
|
||||
<img src="{% static 'logo.weekly.jpg' %}" alt="Data image"/>
|
||||
<div class="description">
|
||||
<h3>Sentiment</h3>
|
||||
<h5>45.00</h5>
|
||||
</div>
|
||||
{% for plan in plans %}
|
||||
|
||||
{% if plan not in user_plans %}
|
||||
<a href="order?product={{ plan.name }}">
|
||||
{% endif %}
|
||||
<div class="product">
|
||||
<img src="{% static plan.image %}" alt="Data image"/>
|
||||
<div class="description">
|
||||
<h3>{{ plan.description }}</h3>
|
||||
<h5>£{{ plan.cost }}</h5>
|
||||
{% if plan in user_plans %}
|
||||
<h5> (purchased) </h5>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if plan not in user_plans %}
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<script type="text/javascript">
|
||||
// Create an instance of the Stripe object with your publishable API key
|
Loading…
Reference in New Issue