Fixed payment details for unpaid stripe payments

This commit is contained in:
Raphael Michel
2015-08-13 19:09:32 +02:00
parent 7094d8178f
commit ec6f22d701

View File

@@ -14,22 +14,30 @@
This order has been planned to be paid via Stripe, but the payment has not yet been completed. This order has been planned to be paid via Stripe, but the payment has not yet been completed.
{% endblocktrans %}</p> {% endblocktrans %}</p>
{% endif %} {% endif %}
<dl class="dl-horizontal"> {% if order.status != "p" %}
<dt>{% trans "Charge ID" %}</dt> <dl class="dl-horizontal">
<dd>{{ payment_info.id }}</dd> <dt>{% trans "Charge ID" %}</dt>
<dt>{% trans "Card type" %}</dt> <dd>{{ payment_info.id }}</dd>
<dd>{{ payment_info.source.brand }}</dd> <dt>{% trans "Card type" %}</dt>
<dt>{% trans "Card number" %}</dt> <dd>{{ payment_info.source.brand }}</dd>
<dd>**** **** **** {{ payment_info.source.last4 }}</dd> <dt>{% trans "Card number" %}</dt>
<dt>{% trans "Payer name" %}</dt> <dd>**** **** **** {{ payment_info.source.last4 }}</dd>
<dd>{{ payment_info.source.name }}</dd> <dt>{% trans "Payer name" %}</dt>
<dt>{% trans "Total value" %}</dt> <dd>{{ payment_info.source.name }}</dd>
<dd>{{ payment_info.amount|floatformat:2 }}</dd> <dt>{% trans "Total value" %}</dt>
<dt>{% trans "Currency" %}</dt> <dd>{{ payment_info.amount|floatformat:2 }}</dd>
<dd>{{ payment_info.currency|upper }}</dd> <dt>{% trans "Currency" %}</dt>
<dt>{% trans "Status" %}</dt> <dd>{{ payment_info.currency|upper }}</dd>
<dd>{{ payment_info.status }}</dd> <dt>{% trans "Status" %}</dt>
</dl> <dd>{{ payment_info.status }}</dd>
</dl>
{% endif %}
{% if "message" in payment_info %}
<dl class="dl-horizontal">
<dt>{% trans "Error message" %}</dt>
<dd>{{ payment_info.message }}</dd>
</dl>
{% endif %}
{% else %} {% else %}
<p>{% blocktrans trimmed %} <p>{% blocktrans trimmed %}
This order has been planned to be paid via Stripe, but the payment has not yet been completed. This order has been planned to be paid via Stripe, but the payment has not yet been completed.