PPv2: Make PENDING_REVIEW payments more visible in control view

This commit is contained in:
Martin Gross
2023-04-28 13:49:12 +02:00
parent 377765e2e1
commit b641d343d6

View File

@@ -21,6 +21,17 @@
{% endfor %}
{% endif %}
{% if payment_info.purchase_units.0.payments %}
<dt>{% trans "Capture status" %}</dt>
<dd>
{% if payment_info.purchase_units.0.payments.captures.0.status_details.reason == "PENDING_REVIEW" %}
<span class="fa fa-warning fa-danger" data-toggle="tooltip" title="{% trans "This payment is being reviewed by PayPal. Until the review is lifted, the money will not be disbursed and the order remain in its pending state." %}"></span>
{% endif %}
{{ payment_info.purchase_units.0.payments.captures.0.status }}
{% if payment_info.purchase_units.0.payments.captures.0.status_details.reason %}
({{ payment_info.purchase_units.0.payments.captures.0.status_details.reason }})
{% endif %}
</dd>
<dt>{% trans "Last update" %}</dt>
<dd>{{ payment_info.purchase_units.0.payments.captures.0.update_time }}</dd>
<dt>{% trans "Total value" %}</dt>