2323
2424BASE_PAL_url = "https://pal-{}.adyen.com/pal/servlet"
2525BASE_HPP_url = "https://{}.adyen.com/hpp"
26- API_VERSION = "v25"
26+ API_VERSION = "v30"
27+ API_RECURRING_VERSION = "v25"
2728API_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,
0 commit comments