8
0
Fork 0
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:
Yohann D'ANELLO 2021-02-02 20:50:09 +01:00
parent e28ad0ab2d
commit fdd2eb363a
No known key found for this signature in database
GPG key ID: 3A75C55819C8CF85

View file

@ -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."))