{% extends "base.html" %} {% block content %} {% if invoicables %} {% include "saas/_invoiceables.html" %} {% else %}

You have no balance due.

{% endif %}
{% if not last_charge %} A charge of {{lines_price|humanize_money}} 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_key}}).

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

{% endif %} {% endwith %} {% endif %}
{% if RAZORPAY_PUB_KEY %} {% include "saas/_razorpay_checkout.html" %} {% else %} {% include "saas/_card_use.html" %} {% endif %} {% endblock %}