{% extends "saas/card_base.html" %} {% load currency %} {% block content %} {% include "saas/balance.html" %}
{% if not last_charge %} A charge of {{total_amount|usd}} will be created on your card. Thank you. {% else %} {% with last_charge as charge %} {% if charge.is_failed or charge.is_disputed %}

On {{charge.created_at}} we attempted to charge your card

card
{{charge.last4}}
expires
{{charge.exp_date}}

The charge {% if charge.is_failed %}failed {% else %} {% if charge.is_disputed %}was disputed {% endif %} {% endif %} (ref: {{charge.processor_id}}).

Please enter a valid credit card. A new charge of {{total_amount|usd}} will be created. Thank you.

{% endif %} {% endwith %} {% endif %}
{% include "saas/card_use.html" with title="Pay Now" %} {% endblock %}