{% extends "recurring_payments/base-wide.html" %} {% load base_tags %} {% load base_filters %} {% load perm_tags %} {% load recurring_payments_tags %} {% block title %}{% trans 'Recurring Payment View' %}{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block content %}
{% if not is_active %}
{% trans 'This account is' %} {{ rp.status_detail }}
{% endif %}

{% trans 'Recurring Payment Account' %} - {{ rp.description }}

{% if is_active %} {% if rp.platform == 'stripe' %}
{% csrf_token %}
{% with rp.get_source_data as source_data %} {% if source_data %} {% trans "Current card: " %} ยทยทยทยท{{ source_data.last4 }}     {{ source_data.exp_month }}/{{ source_data.exp_year }} {% endif %} {% endwith %}
{% else %}
{% if payment_profile %}
{% trans 'Last updated by' %} {{ payment_profile.owner }} on {{ payment_profile.update_dt|date:'N j Y' }}
{% endif %}
{% if not payment_profile %}
{% trans 'NOT complete yet!' %}
{% trans 'Please click the button at right to add a payment method.' %}
{% endif %} {% endif %} {% endif %} {% if rp.url %}
{% trans 'URL' %}: {{ rp.url|urlize }}
{% endif %}
{% trans 'Description' %}: {{ rp.description }}
{% if num_accounts > 1 %} {% endif %}
{% trans 'Current account balance' %}: {{ rp.get_outstanding_balance|format_currency }}

{% if last_paid_payment_transaction %} {% trans 'The last payment' %} ({{ last_paid_payment_transaction.amount|format_currency }}) {% trans 'received date' %}: {{ last_paid_payment_transaction.create_dt }}.

{% endif %} {% if last_failed_payment_transaction %} {% trans 'The last payment' %} ({{ last_paid_payment_transaction.amount|format_currency }}) {% trans 'was failed on' %} {{ last_failed_payment_transaction.create_dt|date }}.

{% endif %}
{% if memberships %}
{% for m in memberships %} {% endfor %}
{% trans "Membership type" %} {% trans "Member Number" %} {% trans "Expire date" %} {% trans "Status detail" %}
{{ m.membership_type.name }} {{ m.member_number }} {{ m.expire_dt }} {{ m.status_detail }}
{% else %}
{% trans 'The number of billing cycle completed' %}: {{ rp.num_billing_cycle_completed }}

{% trans 'The number of billing cycle failed' %}: {{ rp.num_billing_cycle_failed }}
{% trans 'Recurring Billing Settings' %}
{% trans 'Payment Amount' %}: {{ rp.payment_amount|format_currency }}
{% if rp.tax_rate %}
{% trans 'Tax Rate' %}: {{ rp.tax_rate_percentage }}
{% endif %}
{% trans 'Initial Billing Cycle Start Date' %}: {{ rp.billing_start_dt }}
{% trans 'Billing Frequency' %}: {% trans 'Once every' %} {{ rp.billing_frequency }} {{ rp.billing_period }}{{ rp.billing_frequency|pluralize }}
{% trans 'Billing Date' %}: {{ rp.num_days }} day{{ rp.num_days|pluralize }} {% trans 'after each billing cycle' %} {{ rp.due_sore }} date
{% if rp.has_trial_period %}
{% trans 'Trial Period' %}
{% trans 'Amount' %}: {{ rp.trial_amount|format_currency }}
{% trans 'From' %} {{ rp.trial_period_start_dt|date }} {% trans 'to' %} {{ rp.trial_period_end_dt|date }}
{% endif %} {% endif %}
{% if rp_invoices %} {% for rp_invoice in rp_invoices %} {% endfor %}
{% trans 'Billing Cycle' %} {% trans 'Amount' %} {% trans 'Due Date' %} {% trans 'Payment Received Date' %} {% trans 'Paid?' %} {% trans 'Invoice' %} #
{{ rp_invoice.billing_cycle_start_dt|date:"n/j/Y" }} - {{ rp_invoice.billing_cycle_end_dt|date:"n/j/Y" }} {{ rp_invoice.invoice.total|format_currency }} {{ rp_invoice.billing_dt|date:"n/j/Y" }} {% if rp_invoice.payment_received_dt %}{{ rp_invoice.payment_received_dt|date:"n/j/Y" }}{% endif %} {% if rp_invoice.invoice.balance <= 0 %}Y{% else %}N{% endif %} {{ rp_invoice.invoice.id }}
{% else %} {% trans 'No invoices available yet.' %} {% endif %}
{% if payment_transactions %} {% for pt in payment_transactions %} {% with pt.recurring_payment_invoice as rp_invoice %} {% endwith %} {% endfor %}
{% trans 'Date' %} {% trans 'Invoice #' %} {% trans 'Amount' %} {% trans 'Result' %} {% trans 'Reason if Failed' %} {% trans 'View Receipt' %}
{{ pt.create_dt|date:"n/j/Y" }} {{ pt.recurring_payment_invoice.invoice.id }} {{ pt.amount|format_currency }} {% if pt.status %}{% trans 'Success' %}{% else %}{% trans 'Failed' %}{% endif %} {% if not pt.status %}{{ pt.message_text }}{% endif %} {% if pt.status %}{{ pt.payment.id }}{% endif %}
{% else %} {% trans 'No payment transactions available yet.' %} {% endif %}

 

{% if is_active %} {% if rp.platform == 'authorizenet' %} {% endif %} {% endif %} {% endblock %} {% block extra_body %} {{ block.super }} {# dynamically load jquery #} {% if is_active %} {% if rp.platform == 'authorizenet' %} {% endif %} {% endif %} {% endblock %}