Browse Source

Invalide la facture Comnpay avant de continuer le paiement.

fix_front_profil
Hugo LEVY-FALK 8 years ago
parent
commit
4da804bfe7
  1. 2
      cotisations/payment_methods/comnpay/models.py

2
cotisations/payment_methods/comnpay/models.py

@ -26,5 +26,7 @@ class ComnpayPayment(models.Model):
) )
def end_payment(self, invoice, request): def end_payment(self, invoice, request):
invoice.valid = False
invoice.save()
content = comnpay(invoice, request) content = comnpay(invoice, request)
return render(request, 'cotisations/payment.html', content) return render(request, 'cotisations/payment.html', content)

Loading…
Cancel
Save