{% load i18n %}
{% load base_filters %}

{% trans "Greetings" %} {{ pt.recurring_payment.user.first_name }}, <br /><br />

{% if pt.status %}
The payment has been received for the {{ pt.recurring_payment.description }}.
{% else %}
We attempted a payment for the {{ pt.recurring_payment.description }} but was failed. The failed reason is listed below.
{% endif %}
<br /><br />

<div><h2>{% trans "Transaction details:" %}</h2></div>

<div>
<table border="0" width="90%">
	
	<tr>
		<td>Payment amount:</td><td>{{ pt.amount|format_currency }}</td>
	</tr>
	<tr>
		<td>Billing cycle: </td><td>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' }}</td>
	</tr>
	<tr>
		<td>Date processed:</td><td>{{ pt.create_dt|date }}</td>
	</tr>
	{% if not pt.status %}
	<tr>
		<td>Reason failed:</td><td>{{ pt.message_text }}</td>
	</tr>
	{% endif %}

</table>

</div>

<br />
<div>
To view your account, go to:
<br />
<a href="{{ site_url }}{% url recurring_payment.view_account pt.recurring_payment.id %}">{{ site_url }}{% url recurring_payment.view_account pt.recurring_payment.id %}</a>
</div>

<br />
<div>
To update your payment method, go to:
<br />
<a href="{{ site_url }}{% url recurring_payment.authnet.update_payment_info pt.recurring_payment.id %}">{{ site_url }}{% url recurring_payment.authnet.update_payment_info pt.recurring_payment.id %}</a>
</div>
<br />
Your login username is: {{ pt.recurring_payment.user.username }}

<br />
<br />
{% trans "Thanks!" %}
<br /><br />

<P>{{ site_display_name }}</P>

<p align="center">
 {% trans "This e-mail was generated by Tendenci&reg; Software - a" %}
 {% trans "web based membership management software solution" %}
 {% trans "tendenci.com developed by Schipul - The Web Marketing Company" %}
</p>