From fdd2eb363a7a75243a15362c8ed98cf8704ae3c2 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 2 Feb 2021 20:50:09 +0100 Subject: [PATCH] Validate comnpay payments on another host --- cotisations/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cotisations/views.py b/cotisations/views.py index e114b569..7aa771b5 100644 --- a/cotisations/views.py +++ b/cotisations/views.py @@ -153,7 +153,8 @@ def new_facture(request, user, userid): p.save() return new_invoice_instance.paiement.end_payment( - new_invoice_instance, request + new_invoice_instance,request, + ipn_host=settings.ALLOWED_HOSTS[0] if request.path.contains("portail") else None, ) else: messages.error(request, _("You need to choose at least one article."))