{% extends "payments/base.html" %} {% load payments_tags %} {% load base_filters %} {% block title %}{% trans 'View a Payment' %}{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block content %}

{% trans "View a Payment" %}

{% trans "Payments are created with " %} {% trans "invoices" %}. {% blocktrans %} There can be, theoretically, multiple payments for one invoice. Only a TENDERED invoice can have a payment created for it, but if the payment were to not be approved then it is possible for the user to initiate payment again resulting in more than one payment per invoice. The real trail is on the accounting side - note the yellow "accounting" link below for more information.

***Reversing a payment does *NOT* issue a credit or refund. It will simply reverse the payment entries in the general ledger for accounting purposes. {% endblocktrans %}

{% trans "Admin / Owner Block" %}

{% trans "Payment ID:" %} {{ payment.id }} {% trans "Status Detail:" %} {{ payment.status_detail }}
{% trans "Invoice ID:" %} {{ payment.invoice.id }} {% trans "accounting" %} {% trans "Payment Status:" %} {% if payment.status%}1{% else %}0{% endif %}
{% trans "Payment GUID:" %} {{ payment.guid }}
{% trans "Created:" %} {{ payment.create_dt|date:'long' }}
{% trans "Creator:" %} {% if payment.creator%}{{ payment.creator.username }}{%endif%} {% trans "Owner:" %} {% if payment.owner%}{{ payment.owner.username }}{%endif%}

{% trans "Transaction Details" %}

{% if payment.check_number %} {% endif %}
{% trans "Response Code:" %} {{ payment.response_code }} {% trans "Response Subcode:" %} {{ payment.response_subcode }}
{% trans "Response Reason Code:" %} {{ payment.response_reason_code }}
{% trans "Response Reason Text:" %} {{ payment.response_reason_text }}
{% trans "Response Page:" %} {{ payment.response_page }}
{% trans "Trans ID:" %} {{ payment.trans_id }}
{% trans "PO Number:" %} {{ payment.po_num}} {% trans "Authorization Code:" %} {{ payment.auth_code }}
{% trans "Amount:" %} {{ payment.amount|format_currency }} {% trans "Method:" %} {{ payment.method }}
  {% trans "Check Number:" %} {{ payment.check_number}}
{% trans "Invoice Number:" %} {{ payment.invoice_num_}} {% trans "AVS Result Code:" %} {{ payment.avs_code }}
{% trans "Description:" %} {{ payment.description }}  

{% trans "Customer Name and Billing Address" %}

{% trans "Cardholder Name:" %} {% if payment.first_name %}{{ payment.first_name }}{% endif %} {% if payment.last_name %}{{ payment.last_name }}{% endif %}
{% trans "Company:" %} {% if payment.companye %}{{ payment.company }}{% endif %}
{% trans "Billing Address:" %} {% if payment.address %}{{ payment.address}}{% endif %}
{% trans "City:" %} {% if payment.city %}{{ payment.city}}{% endif %} State: {% if payment.state_name %}{{ payment.state }}{% endif %}
{% trans "Zip:" %} {% if payment.zip %}{{ payment.zip}}{% endif %} Country: {% if payment.country %}{{ payment.country }}{% endif %}
{% trans "Phone:" %} {% if payment.phone %}{{ payment.phone}}{% endif %} Fax: {% if payment.fax %}{{ payment.fax }}{% endif %}
{% trans "Email:" %} {% if payment.email %}{{ payment.email|obfuscate_email }}{% endif %}  

{% trans "Customer Shipping Address" %}

{% trans "Ship to First Name:" %} {{ payment.ship_to_first_name }} {% trans "Ship to Last Name:" %} {{ payment.ship_to_last_name }}
{% trans "Ship to Company:" %} {{ payment.ship_to_company }} {% trans "Ship to Address:" %} {{ payment.ship_to_address}}
{% trans "Ship to City:" %} {{ payment.ship_to_city}} {% trans "Ship to State:" %} {{ payment.ship_to_state }}
{% trans "Ship to Zip:" %} {{ payment.ship_to_zip}} {% trans "Ship to Country:" %} {{ payment.ship_to_country }}
{% endblock %}