diff --git a/payment_paypal/indico_payment_paypal/templates/transaction_details.html b/payment_paypal/indico_payment_paypal/templates/transaction_details.html index 535cc67..3e55cbf 100644 --- a/payment_paypal/indico_payment_paypal/templates/transaction_details.html +++ b/payment_paypal/indico_payment_paypal/templates/transaction_details.html @@ -13,9 +13,11 @@ {% endblock %} {% block warning_box %} - {% call warning_message() %} -

{% trans %}The paid amount does not match the required amount. Please contact the registrant to solve the issue.{% endtrans %}

-

{% trans %}Paid: {% endtrans %}{{ format_currency(transaction.amount, transaction.currency, locale=session.lang) }}

-

{% trans %}Required: {% endtrans %}{{ format_currency(registrant.getTotal(), transaction.currency, locale=session.lang) }}

- {% endcall %} + {% if transaction.amount != registrant.getTotal() %} + {% call warning_message() %} +

{% trans %}The paid amount does not match the required amount. Please contact the registrant to solve the issue.{% endtrans %}

+

{% trans %}Paid: {% endtrans %}{{ format_currency(transaction.amount, transaction.currency, locale=session.lang) }}

+

{% trans %}Required: {% endtrans %}{{ format_currency(registrant.getTotal(), transaction.currency, locale=session.lang) }}

+ {% endcall %} + {% endif %} {% endblock %}