This package provides integration with the Adyen payment gateway. It is designed to work with the e-commerce framework django-oscar. This extension supports Django 1.8+, Python 3.6+ and Oscar 1.4+.
https://django-oscar-adyen.readthedocs.io/en/latest/
Get it from PyPi:
$ pip install django-oscar-adyen
Add 'adyen'
to INSTALLED_APPS
and run:
$ django-admin migrate adyen
to create the appropriate database tables.
You have two approaches to configure django-oscar-adyen.
Settings-based configurationFor 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 configurationIn 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.
adyen.signers
module to handle signature algorithmadyen.signers
module.This version is backwrd compatible with version 0.6.0.
Note that plugin users need to implement method get_signer_backend
if they uses their own config class from the abstract config class.
Warning
The implementation of the signature with SHA-256 algorithm has not been tested in a real-life case. Plugin users may use it carefuly, and they are invited to report any issues they may encounter.
0.6.0 - released March 1st, 2016This version is backward compatible with version 0.5.0.
Note that plugin users need to implement method get_allowed_methods
if they uses their own config class from the abstract config class.
django-oscar-adyen
is released under the BSD license, like Django itself.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4