{% macro card_expiring_warning() -%} {% if current_user.is_authenticated and current_user.subscription and current_user.credit_card.is_expiring %}
You are not currently subscribed, so there's nothing to see here.
{% else %}| Subscription | Description | Next billing date | Price |
|---|---|---|---|
| {{ invoice.plan }} | {{ invoice.description }} | ${{ invoice.amount_due | format_currency }} / {{ invoice.interval }} |
This isn't an error. You just haven't been invoiced yet.
{% else %}| Date | Method | Description | Service period | Tax | Total |
|---|---|---|---|---|---|
| {{ invoice.brand }} ****{{ invoice.last4 }} | {{ invoice.description }} | — | {{ '$' + invoice.tax | format_currency if invoice.tax }} | ${{ invoice.total | format_currency }} |