diff --git a/cotisations/payment_methods/comnpay/models.py b/cotisations/payment_methods/comnpay/models.py index 83a6f534..4fc509af 100644 --- a/cotisations/payment_methods/comnpay/models.py +++ b/cotisations/payment_methods/comnpay/models.py @@ -26,5 +26,7 @@ class ComnpayPayment(models.Model): ) def end_payment(self, invoice, request): + invoice.valid = False + invoice.save() content = comnpay(invoice, request) return render(request, 'cotisations/payment.html', content)