{% extends "email/base.html" %} {% block title %}Payment failed{% endblock %} {% block hero %} {% include "email/partials/_hero.html" with hero_variant="error" hero_title="Payment failed" hero_subtitle="Your payment method needs an update." hero_icon="cancel.png" hero_accent_icon="sad.png" %} {% endblock %} {% block content %}

Hi {{ admin_name }},

{% if customer_type == "engineer" %} We could not process the {{ billing_cycle }} payment of {{ amount }} for your {{ plan_name }} plan. {% else %} We could not process the {{ billing_cycle }} payment of {{ amount }} for {{ company_name }}’s {{ plan_name }} plan. {% endif %}

{% include "email/partials/_detail_row.html" with pill_label="PLAN" pill_value=plan_name pill_variant="gray" pill_radius="top" %} {% include "email/partials/_detail_row.html" with pill_label="AMOUNT" pill_value=amount pill_variant="gray" %} {% if attempted_on %} {% include "email/partials/_detail_row.html" with pill_label="ATTEMPTED ON" pill_value=attempted_on pill_variant="gray" %} {% elif next_retry_date %} {% include "email/partials/_detail_row.html" with pill_label="NEXT RETRY" pill_value=next_retry_date pill_variant="gray" %} {% endif %} {% include "email/partials/_detail_row.html" with pill_label="PAYMENT METHOD" pill_value=payment_gateway pill_variant="gray" %} {% include "email/partials/_detail_row.html" with pill_label="STATUS" pill_value="Failed" pill_variant="error" pill_border="none" pill_radius="bottom" %}
{% if downgraded %}

After {{ max_attempts }} unsuccessful payment attempts, your subscription was cancelled. Your account is on the Free plan. Your data is unchanged. You can subscribe again at any time.

{% include "email/partials/_cta.html" with cta_url=billing_url cta_label="View billing" %} {% else %}

We will retry the charge automatically. Open billing, then choose Update payment method if your card or bank details have changed.

{% include "email/partials/_cta.html" with cta_url=billing_url cta_label="Update payment method" %} {% endif %} {% endblock %}