This repo contain a rough implementation of the Adyen API in Python. The goal was to make a simple payment module to be used for donation or licensing purpose.
API-only integration require authorization from Adyen Sales Support. As such, this code will not succeed when /payments
is called and will throw AdyenAPIInvalidPermission
error.
Also, full PCI compliance is expected as this code collect raw credit card data. I doubt this primitive code is compliant.
The integration isn't finished as payment details and payment result parsing and display are not implemented.
- Python 3.8
- Packages: Adyen, requests
- Adyen account, that you can request it here.
All merchant-specific info are needs to be registered in secrets.py
. A template is provided: secrets_template.py
.
- Install required packages:
pip install Adyen requests
- Rename
secrets_template.py
tosecrets.py
. - Replace all content with your informations.
Run client.py
The Unlicense - see LICENSE