{% load base_filters %} {% trans "Greetings" %} {{ pt.recurring_payment.user.first_name }},

{% if pt.status %} {% blocktrans with d=pt.recurring_payment.description %} The payment has been received for the {{ d }}. {% endblocktrans %} {% else %} {% blocktrans with d=pt.recurring_payment.description %} We attempted a payment for the {{ d }} but was failed. The failed reason is listed below. {% endblocktrans %} {% endif %}

{% trans "Transaction details:" %}

{% if membership %} {% endif %} {% if not pt.recurring_payment.memberships %} {% endif %} {% if not pt.status %} {% endif %}
{% trans 'Payment amount' %}:{{ pt.amount|format_currency }}
{% if membership.status_detail == 'active' %}{% trans 'Membership renewed:' %}{% else %}{% trans 'Membership renewal pending:' %}{% endif %}:{{ site_url }}{% url 'membership.details' membership.id %}
{% trans 'Billing cycle' %}: From {{ pt.recurring_payment_invoice.billing_cycle_start_dt|date:'N j Y' }} To {{ pt.recurring_payment_invoice.billing_cycle_end_dt|date:'N j Y' }}
{% trans 'Date processed' %}:{{ pt.create_dt|date }}
{% trans 'Reason failed' %}:{{ pt.message_text }}

{% trans 'To view your account, go to' %}:
{{ site_url }}{% url "recurring_payment.view_account" pt.recurring_payment.id %}

{% if membership %}
{% trans 'To update membership auto renewal and payment method, go to' %}:
{{ site_url }}{% url "memberships.auto_renew_setup" membership.user.id %}

{% else %} {% if pt.recurring_payment.platform == 'authorizenet' %}
{% trans 'To update your payment method, go to' %}:
{{ site_url }}{% url "recurring_payment.authnet.update_payment_info" pt.recurring_payment.id %}

{% endif %} {% endif %} {% trans 'Your login username is' %}: {{ pt.recurring_payment.user.username }}

{% trans "Thanks!" %}

{{ site_display_name }}