{% load base_filters %}
{% trans "Greetings:" %}
{% trans 'A transaction was processed' %} {% if pt.status %}{% trans 'successfully' %}{% endif %}{% if not pt.status %}{% trans 'but failed' %}{% endif %}
{% if membership %}
{% trans 'for membership auto renew' %} ({{ pt.recurring_payment }})
{% else %}
{% trans 'for the recurring payment' %} ({{ pt.recurring_payment }})
{% endif %}
on {{ site_display_name }}.
{% trans 'Payment amount' %}: | {{ pt.amount|format_currency }} |
{% trans 'Result code' %}: | {{ pt.result_code }} |
{% trans 'Message code' %}: | {{ pt.message_code }} |
{% trans 'Message text' %}: | {{ pt.message_text }} |
{% trans 'Transaction date' %}: | {{ pt.create_dt|date }} |
{% trans 'State' %}: | {{ pt.payment.state }} |
{% trans 'Customer' %}: | {{ pt.recurring_payment.user.get_full_name }} ({{ pt.recurring_payment.user.email }}) |
{% if membership.status_detail == 'active' %}{% trans 'Membership renewed:' %}{% else %}{% trans 'Membership renewal pending:' %}{% endif %}: | {{ site_url }}{% url 'membership.details' membership.id %} |
{% trans 'Guid' %}: | {{ pt.recurring_payment.guid }} |
{% trans 'Current cycle start' %}: | {{ pt.recurring_payment_invoice.billing_cycle_start_dt|date }} |
{% trans 'Current cycle end' %}: | {{ pt.recurring_payment_invoice.billing_cycle_end_dt|date }} |
{% trans "Time submitted:" %} {% now "D d M Y P" %}