This is the officially supported Python library for using Adyen's APIs.
The library supports all APIs under the following services:
- Checkout API: Our latest integration for accepting online payments. Current supported version: v69
- Payments API: Our classic integration for online payments. Current supported version: v64
- Recurring API: Endpoints for managing saved payment details. Current supported version: v49
- Payouts API: Endpoints for sending funds to your customers. Current supported version: v64
- Orders API: Endpoints for creating and canceling orders. Current supported version: v67
- Utility API: This operation takes the origin domains and returns a JSON object containing the corresponding origin keys for the domains. Current supported version: v67
- Terminal API: Endpoints for interacting with POS terminals. v1
For more information, refer to our documentation or the API Explorer.
- Adyen test account
- API key. For testing, your API credential needs to have the API PCI Payments role.
- Python 2.7 (Deprecated) or 3.6
- Packages: requests or pycurl ( optional )
Clone this repository and run
make install
Use pip command:
pip install Adyen
import Adyen
ady = Adyen.Adyen()
ady.payment.client.xapikey = "YourXapikey"
ady.payment.client.skin_code = "skin code for Hosted Payment pages"
ady.payment.client.hmac = "HMAC key for skin code"
ady.payment.client.platform = "test" # Environment to use the library in.
ady.payment.client.merchant_account = "merchant account name from CA"
For a closer look at how our Python library works, clone our example integration. This includes commented code, highlighting key features and concepts, and examples of API calls that can be made using the library.
We encourage you to contribute to this repository, so everyone can benefit from new features, bug fixes, and any other improvements.
Have a look at our contributing guidelines to find out how to raise a pull request.
If you have a feature request, or spotted a bug or a technical problem, create an issue here.
For other questions, contact our Support Team.
This repository is available under the MIT license.