Skip to content

Commit 03af966

Browse files
authored
PW-307 Use different version for Payment and Recurring service. (#37)
Update version to 1.2.0
1 parent fd0fab4 commit 03af966

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Adyen/client.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323

2424
BASE_PAL_url = "https://pal-{}.adyen.com/pal/servlet"
2525
BASE_HPP_url = "https://{}.adyen.com/hpp"
26-
API_VERSION = "v25"
26+
API_VERSION = "v30"
27+
API_RECURRING_VERSION = "v25"
2728
API_CLIENT_ATTR = ["username","password","review_payout_user",
2829
"review_payout_password","confirm_payout_user","confirm_payout_password",
2930
"platform","merchant_account","merchant_specific_url","hmac"]
@@ -90,7 +91,7 @@ def __init__(self, username=None, password=None, review_payout_username=None,
9091
self.skin_code = skin_code
9192
self.psp_list = []
9293
self.app_name = app_name
93-
self.LIB_VERSION = "1.1.0";
94+
self.LIB_VERSION = "1.2.0";
9495
self.USER_AGENT_SUFFIX = "adyen-python-api-library/";
9596
self.http_init = False
9697
self.http_force = http_force
@@ -105,7 +106,11 @@ def _determine_api_url(self, platform, service, action):
105106
action (str): the API action to perform.
106107
"""
107108
base_uri = BASE_PAL_url.format(platform)
108-
return '/'.join([base_uri, service, API_VERSION, action])
109+
if service == "Recurring":
110+
api_version = API_RECURRING_VERSION
111+
else:
112+
api_version = API_VERSION
113+
return '/'.join([base_uri, service, api_version, action])
109114

110115
def _determine_hpp_url(self, platform, action):
111116
"""This returns the Adyen HPP endpoint based on the provided platform,

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
setup(
44
name = 'Adyen',
55
packages = ['Adyen'],
6-
version = '1.1.0',
6+
version = '1.2.0',
77
maintainer = 'Adyen',
88
maintainer_email= 'support@adyen.com',
99
description = 'Adyen Python Api',
1010
long_description = "A Python client library for accessing Adyen APIs",
1111
author = 'Adyen',
1212
author_email = 'support@adyen.com',
1313
url = 'https://github.com/Adyen/adyen-python-api-library',
14-
download_url = 'https://github.com/Adyen/adyen-python-api-library/archive/1.1.0.tar.gz',
14+
download_url = 'https://github.com/Adyen/adyen-python-api-library/archive/1.2.0.tar.gz',
1515
keywords = ['payments', 'adyen', 'fintech'],
1616
classifiers = [
1717
'Development Status :: 5 - Production/Stable',

0 commit comments

Comments
 (0)