diff --git a/Adyen/client.py b/Adyen/client.py index 2c532865..f96d3a88 100644 --- a/Adyen/client.py +++ b/Adyen/client.py @@ -23,7 +23,8 @@ BASE_PAL_url = "https://pal-{}.adyen.com/pal/servlet" BASE_HPP_url = "https://{}.adyen.com/hpp" -API_VERSION = "v18" +API_VERSION = "v30" +API_RECURRING_VERSION = "v25" API_CLIENT_ATTR = ["username","password","review_payout_user", "review_payout_password","confirm_payout_user","confirm_payout_password", "platform","merchant_account","merchant_specific_url","hmac"] @@ -90,7 +91,7 @@ def __init__(self, username=None, password=None, review_payout_username=None, self.skin_code = skin_code self.psp_list = [] self.app_name = app_name - self.LIB_VERSION = "1.1.0"; + self.LIB_VERSION = "1.2.0"; self.USER_AGENT_SUFFIX = "adyen-python-api-library/"; self.http_init = False self.http_force = http_force @@ -105,7 +106,11 @@ def _determine_api_url(self, platform, service, action): action (str): the API action to perform. """ base_uri = BASE_PAL_url.format(platform) - return '/'.join([base_uri, service, API_VERSION, action]) + if service == "Recurring": + api_version = API_RECURRING_VERSION + else: + api_version = API_VERSION + return '/'.join([base_uri, service, api_version, action]) def _determine_hpp_url(self, platform, action): """This returns the Adyen HPP endpoint based on the provided platform, diff --git a/setup.py b/setup.py index 7b134803..55846f8a 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name = 'Adyen', packages = ['Adyen'], - version = '1.1.0', + version = '1.2.0', maintainer = 'Adyen', maintainer_email= 'support@adyen.com', description = 'Adyen Python Api', @@ -11,7 +11,7 @@ author = 'Adyen', author_email = 'support@adyen.com', url = 'https://github.com/Adyen/adyen-python-api-library', - download_url = 'https://github.com/Adyen/adyen-python-api-library/archive/1.1.0.tar.gz', + download_url = 'https://github.com/Adyen/adyen-python-api-library/archive/1.2.0.tar.gz', keywords = ['payments', 'adyen', 'fintech'], classifiers = [ 'Development Status :: 5 - Production/Stable',