This repo contain an implementation of the Adyen Drop-In API on a simple Django webapp. You can see the application live on Heroku!
The goal was to illustrate the integration of this API. As such it's pretty barebone:
- Selection from 3 countries
- No real cart content
- Fixed amount and currency(15.00€)
TODO
items are used to note documentation remarks that I had.
- Python 3.8.2
- Packages:
Django
,Adyen
,whitenoise
andgunicorn
to run in on Heroku - Adyen account, that you can request it here.
Most merchant-specific info are needs to be registered in base/secrets.py
. A template is provided in base/secrets_template.py
.
- Rename
base/secrets_template.py
tobase/secrets.py
. - Fill the variable with your merchant information.
- Don't forget to install required packages:
pip install Adyen Django whitenoise
- If you want to deploy the app, update Django configuration with your host in
adyen-python-store-demo/settings.py
,ALLOWED_HOSTS
- Collect static files:
manage.py collectstatic
- Start the Django app:
manage.py runserver
- Wikipedia Commons - File:Costa carrot cake (13070325384).jpg
- Wikipedia Commons - File:Mum's lemon meringue pie crop.jpg
- Wikipedia Commons - File:Chocolate cake.jpg
- Pixabay - Leovinus icons
The Unlicense - see LICENSE. Some code extract are coming from Adyen documentation.