diff --git a/cotisations/payment.py b/cotisations/payment.py index b03e1c55..2fa8be3b 100644 --- a/cotisations/payment.py +++ b/cotisations/payment.py @@ -129,7 +129,7 @@ def comnpay(facture, request): facture.prix(), idTransaction=str(facture.id) ), - 'amount': facture.prix, + 'amount': facture.prix(), } return r diff --git a/cotisations/templates/cotisations/recharge.html b/cotisations/templates/cotisations/recharge.html index 196de2ca..6f4e9d9c 100644 --- a/cotisations/templates/cotisations/recharge.html +++ b/cotisations/templates/cotisations/recharge.html @@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,

{% trans "Balance refill" %}

{% blocktrans %} - Balance : {{ request.user.solde }} € + Balance : {{ solde }} € {% endblocktrans %}

diff --git a/cotisations/views.py b/cotisations/views.py index 47076c8f..3db5f220 100644 --- a/cotisations/views.py +++ b/cotisations/views.py @@ -870,5 +870,6 @@ def recharge(request): ](invoice, request) return render(request, 'cotisations/payment.html', content) return form({ - 'rechargeform': refill_form + 'rechargeform': refill_form, + 'solde': request.user.solde }, 'cotisations/recharge.html', request)