Handle paypal entries in billing history page

This commit is contained in:
Pēteris Caune 2016-06-03 19:27:36 +03:00
parent 742e7f992e
commit 39ca0a8924

View File

@ -19,7 +19,13 @@
<tr> <tr>
<td>{{ tx.created_at }}</td> <td>{{ tx.created_at }}</td>
<td> <td>
{% if tx.payment_instrument_type == "paypal_account" %}
Paypal from {{ tx.paypal.payer_email }}
{% endif %}
{% if tx.payment_instrument_type == "credit_card" %}
{{ tx.credit_card.card_type }} ending in {{ tx.credit_card.last_4 }} {{ tx.credit_card.card_type }} ending in {{ tx.credit_card.last_4 }}
{% endif %}
</td> </td>
<td> <td>
{% if tx.currency_iso_code == "USD" %} {% if tx.currency_iso_code == "USD" %}