mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-24 12:23:11 +00:00
Validate comnpay payments on another host
This commit is contained in:
parent
e28ad0ab2d
commit
fdd2eb363a
1 changed files with 2 additions and 1 deletions
|
@ -153,7 +153,8 @@ def new_facture(request, user, userid):
|
||||||
p.save()
|
p.save()
|
||||||
|
|
||||||
return new_invoice_instance.paiement.end_payment(
|
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:
|
else:
|
||||||
messages.error(request, _("You need to choose at least one article."))
|
messages.error(request, _("You need to choose at least one article."))
|
||||||
|
|
Loading…
Reference in a new issue