oscaro/django-oscar-adyen — pull request #4 by metamatik (2014-09-23 11:36:08+00:00)
Title: Fix origin IP address retrieval

This PR allows one to configure the name of the HTTP header in which the IP address from which a payment originated can be found.

The canonical default of `'REMOTE_ADDR'` is assumed in case there is no `ADYEN_IP_ADDRESS_HTTP_HEADER` setting specified in the Django project — which should be the case if any component of the HTTP stack transfers this information in another HTTP header (often, but not always `'HTTP_X_FORWARDED_FOR'`).