Skip to main content

Adyen payment module for django-oscar

Project description

Latest Version on PyPI Supported Python versions TravisCI status

This package provides integration with the Adyen payment gateway. It is designed to work seamlessly with the e-commerce framework django-oscar but can be used without Oscar. This extension supports Django 1.6+, Python 3.3+ and Oscar 0.7+.

Getting started

Installation

From PyPi:

$ pip install django-oscar-adyen

or from Github:

$ pip install git+git://github.com/oscaro/django-oscar-adyen.git#egg=django-oscar-adyen

Add 'adyen' to INSTALLED_APPS and run:

$ django-admin migrate adyen

to create the appropriate database tables.

Configuration

You have two approaches to configure django-oscar-adyen.

Settings-based configuration

For simple deployments, setting the required values in the settings will suffice.

Edit your settings.py to set the following settings:

  • ADYEN_IDENTIFIER - The identifier of your Adyen account.

  • ADYEN_SKIN_CODE - The code for your Adyen skin.

  • ADYEN_SECRET_KEY - The secret key defined in your Adyen skin.

  • ADYEN_ACTION_URL - The URL towards which the Adyen form should be POSTed to initiate the payment process (e.g. ‘https://test.adyen.com/hpp/select.shtml’).

  • ADYEN_IP_ADDRESS_HTTP_HEADER - Optional. The header in META to inspect to determine the IP address of the request. Defaults to REMOTE_ADDR.

You will likely need to specify different settings in your test environment as opposed to your production environment.

Class-based configuration

In more complex deployments, you will want to e.g. alter the Adyen identifier based on the request. That is not easily implemented with Django settings, so you can alternatively set ADYEN_CONFIG_CLASS to a config class of your own. See adyen.settings_config.FromSettingsConfig for an example.

Changes

0.4.1 - released September 24, 2015

0.4.0 - released July 14th, 2015

0.3.0 - released July 8th, 2015

License

django-oscar-adyen is released under the BSD license, like Django itself.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-oscar-adyen-0.4.1.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

django_oscar_adyen-0.4.1-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file django-oscar-adyen-0.4.1.tar.gz.

File metadata

File hashes

Hashes for django-oscar-adyen-0.4.1.tar.gz
Algorithm Hash digest
SHA256 e11f3c321a1700766c1d9e6d77ec920aa3e97a684fb88a2f3def9ad4a5fc3fd2
MD5 d9b3ba10a71b154ef1170e885d0af3d4
BLAKE2b-256 a1466475d3c6bc3f509afa0a83df25ef34de117eac38897f01e5ed1dc824b3b0

See more details on using hashes here.

File details

Details for the file django_oscar_adyen-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_oscar_adyen-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1b44c4d7fb9fe53dec74671f2986e2860eb1198083b1e4bfdf9cd32ea3902e1
MD5 8d85e45059cb49feb41f6cbba541dad2
BLAKE2b-256 054590ba0b74f8f262abed662d38de7dab78b7f3eefbab5d36a0bb5e7d63030c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page