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,6 +14,7 @@
This order has been planned to be paid via Stripe, but the payment has not yet been completed.
{% endblocktrans %}</p>
{% endif %}
{% if order.status != "p" %}
<dl class="dl-horizontal">
<dt>{% trans "Charge ID" %}</dt>
<dd>{{ payment_info.id }}</dd>
@@ -30,6 +31,13 @@
<dt>{% trans "Status" %}</dt>
<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 %}
<p>{% blocktrans trimmed %}
This order has been planned to be paid via Stripe, but the payment has not yet been completed.